diff --git a/mcs/errors/gcs0401.cs b/mcs/errors/gcs0401.cs index c1c5f083293c..ac95556b2f5b 100644 --- a/mcs/errors/gcs0401.cs +++ b/mcs/errors/gcs0401.cs @@ -1,7 +1,6 @@ -// CS0401: The new() constraint must be the last constraint specified -// Line: 6 +// CS0401: The `new()' constraint must be the last constraint specified +// Line: 4 -class Foo - where T : new (), new () +class Foo where T : new (), new () { } diff --git a/mcs/errors/gcs0451.cs b/mcs/errors/gcs0451.cs index da3301b0eca5..c56634be62dc 100644 --- a/mcs/errors/gcs0451.cs +++ b/mcs/errors/gcs0451.cs @@ -1,9 +1,9 @@ // CS0451: The `new()' constraint cannot be used with the `struct' constraint -// Line: 8 +// Line: 6 class C { - public static void Foo() where T : struct, new () + public static void Foo() where T : struct, new () { } }