Bug 24537

Summary: mcs ignores missing bracket
Product: [Mono] Compilers Reporter: Rolf Bjarne Kvinge [MSFT] <rolf>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Rolf Bjarne Kvinge [MSFT] 2014-11-14 12:43:27 UTC
Test case:

    using System.Runtime.InteropServices;
    public class TestApp {
        static void Main ([MarshalAs (UnmanagedType.LPStr) string[] args) {}
    }

The attribute on the parameter is missing a ]

Expected behavior: compiler error.
Actual behavior: successful compilation.

> mono --version
Mono JIT compiler version 3.10.0 ((detached/633e444 Thu Oct  2 22:07:37 EDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.4svn-mono-(detached/e656cac)
	GC:            sgen
Comment 1 Marek Safar 2014-11-18 08:14:28 UTC
Fixed in master