Skip to content

Commit

Permalink
New test.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=156816
  • Loading branch information
marek-safar committed May 6, 2010
1 parent 362e375 commit c3dbb8d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions mcs/errors/cs0030-10.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// CS0030: Cannot convert type `TestCase.MyEnum' to `TestCase.OSType'
// Line: 9

public class TestCase
{
static void Main ()
{
MyEnum me = MyEnum.Value1;
OSType os = (OSType)me;
}

struct OSType {
int value;

public int Value {
get { return Value; }
}

public OSType (int value)
{
this.value = value;
}

public static implicit operator OSType (int i)
{
return new OSType (i);
}
}

enum MyEnum {
Value1
}
}
2 changes: 1 addition & 1 deletion mcs/errors/cs1525-15.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS1525: error CS1525: Unexpected symbol `;', expecting `,' or `}'
// CS1525: Unexpected symbol `;', expecting `,' or `}'
// Line: 10

class X {
Expand Down

0 comments on commit c3dbb8d

Please sign in to comment.