-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
public class C | ||
{ | ||
int i; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// CS0103: The name `i' does not exist in the current context | ||
// Line: 9 | ||
// Compiler options: -r:CS0103-2-lib.dll | ||
|
||
class A : C | ||
{ | ||
void Test () | ||
{ | ||
i = 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// CS0426: The nested type `M' does not exist in the type `N' | ||
// Line: 6 | ||
|
||
class A | ||
{ | ||
class B : N.M | ||
{ | ||
} | ||
} | ||
|
||
class N | ||
{ | ||
public const string S = "1"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// CS0508: `A<T>.B.getT()': return type must be `A<T>.B' to match overridden member `A<A<T>.B>.getT()' | ||
// Line: 10 | ||
|
||
abstract class A<T> | ||
{ | ||
public abstract T getT (); | ||
|
||
public class B : A<B> | ||
{ | ||
public override B getT () | ||
{ | ||
return default (B); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// CS0854: An expression tree cannot contain an invocation which uses optional parameter | ||
// Line: 15 | ||
|
||
using System; | ||
using System.Linq.Expressions; | ||
|
||
class M | ||
{ | ||
public M (string s = "value") | ||
{ | ||
} | ||
|
||
public static void Main () | ||
{ | ||
Expression<Action> e = () => new M (); | ||
} | ||
} |