--- /dev/null
+// CS0106: The modifier `unsafe' is not valid for this item\r
+// Line: 5\r
+// Compiler options: -unsafe\r
+\r
+unsafe enum E\r
+{\r
+}\r
--- /dev/null
+// CS0106: The modifier `public' is not valid for this item
+// Line: 6
+
+class C
+{
+ public ~C ()
+ {
+ }
+}
-// cs0524-2.cs: `Interface.I': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
// Line: 5
interface Interface {
interface I {}
-}
\ No newline at end of file
+}
-// cs0524-3.cs: `Interface.E': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
// Line: 4
interface Interface {
White,
Black
}
-}
\ No newline at end of file
+}
-// cs0524-4.cs: `Interface.C': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
// Line: 5
interface Interface {
-// cs0524-5.cs: `Interface.D': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
// Line: 5
interface Interface {
-// cs0524.cs: `Interface.Struct': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
// Line: 5
interface Interface {
-// cs0525.cs: Interfaces cannot contain fields
-// Line: 5
-interface Interface {
+// CS0525: Interfaces cannot contain fields or constants
+// Line: 6
+
+interface Interface
+{
bool value = false;
-}
\ No newline at end of file
+}
-// cs0526.cs: Interfaces cannot contain constructors
+// CS0526: Interfaces cannot contain contructors
// Line: 5
public interface Interface {
-// cs0548.cs: 'this[bool]' : property or indexer must have at least one accessor
+// CS0548: `IndexerClass.this[bool]': property or indexer must have at least one accessor
// Line: 5
class IndexerClass {
-// cs0548.cs: 'PropertyClass.Value' : property or indexer must have at least one accessor
+// CS0548: `PropertyClass.Value': property or indexer must have at least one accessor
// Line: 5
class PropertyClass {
-// CS0620: An indexer return type cannot be `void'
+// CS0620: `Indexer.this[int]': indexer return type cannot be `void'
// Line: 5
interface Indexer {
-// CS0620: An indexer return type cannot be `void'
+// CS0620: `PropertyClass.this[int]': indexer return type cannot be `void'
// Line: 5
class PropertyClass {
- public void this [int i] { set {}
+ public void this [int i] {
+ set {}
}
}
cs0158-5.cs
cs0162-7.cs NO ERROR
cs0214-10.cs NO ERROR
-cs0525.cs
-cs0526.cs
cs0547-2.cs # new in GMCS; grammar issue
cs0547.cs
-cs0548-4.cs
-cs0548.cs
-cs0567.cs
cs1041.cs # new in GMCS; grammar issue
cs1521-3.cs
cs1525.cs
cs0158-5.cs
cs0162-7.cs NO ERROR
-cs0525.cs
-cs0526.cs
cs0547.cs
cs0547-2.cs
-cs0548-4.cs
-cs0548.cs
-cs0567.cs
cs1041.cs
cs1521-3.cs
cs1525.cs