Skip to content

Commit

Permalink
Updated.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=151907
  • Loading branch information
marek-safar committed Feb 17, 2010
1 parent 50c5f6f commit 210512e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions mcs/errors/gcs0401.cs
Original file line number Diff line number Diff line change
@@ -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<T>
where T : new (), new ()
class Foo<T> where T : new (), new ()
{
}
4 changes: 2 additions & 2 deletions mcs/errors/gcs0451.cs
Original file line number Diff line number Diff line change
@@ -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<T>() where T : struct, new ()
public static void Foo<T>() where T : struct, new ()
{
}
}

0 comments on commit 210512e

Please sign in to comment.