https://bugzilla.novell.com/show_bug.cgi?id=343470

           Summary: gmcs reports CS0657 as an error instead of a warning
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Test case:

using System;
using System.Runtime.CompilerServices;

class Program {

        [assembly:InternalsVisibleToAttribute ("BadPractice")]
        class InnerType {
        }

        static void Main ()
        {
        }
}


[EMAIL PROTECTED]:~/src/bugzilla> gmcs abug.cs
abug.cs(6,19): error CS0657: `assembly' is not a valid attribute location for
this declaration. Valid attribute locations for this declaration are `type'
abug.cs(6,19): error CS0592: The attribute
`System.Runtime.CompilerServices.InternalsVisibleToAttribute' is not valid on
this declaration type. It is valid on `assembly' declarations only
Compilation failed: 2 error(s), 0 warnings



C:\temp>csc abug.cs
Microsoft (R) Visual C# 2008 Compiler version 3.5.21022.8
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

abug.cs(6,3): warning CS0657: 'assembly' is not a valid attribute location for
        this declaration. Valid attribute locations for this declaration are
        'type'. All attributes in this block will be ignored.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to