Bug 24537 - mcs ignores missing bracket
Summary: mcs ignores missing bracket
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2014-11-14 12:43 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2014-11-18 08:14 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.