--- /dev/null
--- /dev/null
++// CS0006: Cannot find assembly file `a:b'\r
++// Line: 0\r
++// Compiler options: -r:a:b\r
++\r
++class C\r
++{\r
++}
--- /dev/null
--- /dev/null
++// CS0723: `MainClass.s': cannot declare variables of static types\r
++// Line: 10\r
++\r
++static class S\r
++{\r
++}\r
++\r
++class MainClass\r
++{\r
++ S s;\r
++}\r
--// cs0723.cs: Cannot declare variable of static type `StaticClass'
++// CS0723: `sc': cannot declare variables of static types
// Line: 10
static class StaticClass {
--- /dev/null
--- /dev/null
++// CS1028: Unexpected processor directive (no #if for this #endif)\r
++// Line: 4\r
++\r
++#endif\r
++\r
++class C\r
++{\r
++}\r
++// CS1656: Cannot assign to `Method_1' because it is a `method group'
++// Line: 14
++
public class Test
{
-- void Method ()
++ void Method_1 ()
{
}
{
Test t = new Test ();
-- t.Method += delegate { };
++ t.Method_1 += delegate { };
}
}
--- /dev/null
--- /dev/null
++// CS0118: `N' is a `namespace' but a `type' was expected\r
++// Line: 8\r
++\r
++namespace N\r
++{\r
++}\r
++\r
++public class C<T> where T : N\r
++{\r
++}
--- /dev/null
--- /dev/null
++// CS0283: The type `T' cannot be declared const\r
++// Line: 8\r
++\r
++struct S\r
++{\r
++ public void Foo<T> () where T : struct\r
++ {\r
++ const T t = null;\r
++ }\r
++}
// CS0449: The `class' or `struct' constraint must be the first constraint specified
// Line: 8
--interface I
++public interface I
{
}
--- /dev/null
--- /dev/null
++// CS0693: Type parameter `T' has the same name as the type parameter from outer type `A<T>'\r
++// Line: 7\r
++// Compiler options: -warnaserror -warn:3\r
++\r
++class A<T>\r
++{\r
++ interface I<T>\r
++ {\r
++ }\r
++}
--- /dev/null
--- /dev/null
++// CS0703: `string[]' is not a valid constraint. A constraint must be an interface, a non-sealed class or a type parameter\r
++// Line: 4\r
++\r
++public class C<T> where T : string[]\r
++{\r
++}
--- /dev/null
--- /dev/null
++// CS0703: Inconsistent accessibility: constraint type `I' is less accessible than `C<T>'\r
++// Line: 8\r
++\r
++interface I\r
++{\r
++}\r
++\r
++public class C<T> where T : I\r
++{\r
++}
--- /dev/null
--- /dev/null
++// CS0718: `S': static classes cannot be used as generic arguments\r
++// Line: 14\r
++\r
++static class S\r
++{\r
++}\r
++\r
++class C<T>\r
++{\r
++}\r
++\r
++class Test\r
++{\r
++ C<S> foo;\r
++}
--- /dev/null
--- /dev/null
++// CS0723: `C<T>.t': cannot declare variables of static types\r
++// Line: 10\r
++\r
++static class S<T>\r
++{\r
++}\r
++\r
++public class C<T>\r
++{\r
++ S<T> t;\r
++}