Skip to content

Commit

Permalink
New tests.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=156747
  • Loading branch information
marek-safar committed May 5, 2010
2 parents 759d6e5 + bab56f4 commit f3e4623
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 8 additions & 0 deletions mcs/errors/cs0037-9.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// CS0037: Cannot convert null to `int' because it is a value type
// Line: 6

class C
{
int [,] i = new int [2,null] { { 1 }, { 2 } };
}

8 changes: 0 additions & 8 deletions mcs/errors/cs0150-2.cs

This file was deleted.

10 changes: 10 additions & 0 deletions mcs/errors/cs0150-3.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// CS0150: A constant value is expected
// Line: 8

public class C
{
void Test ()
{
var zCoords = new double[uint.MaxValue] { 0 };
}
}

0 comments on commit f3e4623

Please sign in to comment.