[Mono-bugs] [Bug 343470] New: gmcs reports CS0657 as an error instead of a warning
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Nov 21 14:25:32 EST 2007
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: mono-bugs at ximian.com
ReportedBy: spouliot at novell.com
QAContact: mono-bugs at ximian.com
Found By: ---
Test case:
using System;
using System.Runtime.CompilerServices;
class Program {
[assembly:InternalsVisibleToAttribute ("BadPractice")]
class InnerType {
}
static void Main ()
{
}
}
poupou at pollux:~/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.
More information about the mono-bugs
mailing list