From 210512ea7dcf2572f60c3932c5f9aded425d21cf Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Wed, 17 Feb 2010 14:13:39 +0000 Subject: [PATCH] Updated. svn path=/trunk/mcs/; revision=151907 --- mcs/errors/gcs0401.cs | 7 +++---- mcs/errors/gcs0451.cs | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mcs/errors/gcs0401.cs b/mcs/errors/gcs0401.cs index c1c5f083293..ac95556b2f5 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 da3301b0eca..c56634be62d 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 () { } } -- 2.25.1