Skip to content

Commit

Permalink
New test.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=157504
  • Loading branch information
marek-safar committed May 18, 2010
2 parents eb8e0ad + c0b7a68 commit 94eb849
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions mcs/errors/cs0120-15.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// CS0120: An object reference is required to access non-static member `MainClass.Test'
// Line: 20

public class Test
{
public void Foo ()
{
}
}

public class MainClass
{
public Test Test
{
get;
set;
}

public static void Main (string[] args)
{
Test.Foo ();
}
}
4 changes: 2 additions & 2 deletions mcs/errors/cs0023-6.cs → mcs/errors/cs1525-16.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0023: The `.' operator cannot be applied to operand of type `void'
// CS1525: Unexpected symbol `void'
// Line: 8

class C
Expand All @@ -7,4 +7,4 @@ public static void Main ()
{
string s = void.ToString ();
}
}
}

0 comments on commit 94eb849

Please sign in to comment.