-
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.
svn path=/trunk/mcs/; revision=158060
- Loading branch information
Showing
4 changed files
with
46 additions
and
0 deletions.
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,16 @@ | ||
// CS0535: `ServerProperty' does not implement interface member `IServerProperty.SetValue(string, uint)' | ||
// Line: 10 | ||
|
||
public interface IServerProperty | ||
{ | ||
int[] GetChildren (uint timeout); | ||
void SetValue (string value, uint timeout); | ||
} | ||
|
||
public class ServerProperty : IServerProperty | ||
{ | ||
public int[] GetChildren (uint timeout) | ||
{ | ||
return null; | ||
} | ||
} |
File renamed without changes.
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 () | ||
{ | ||
throw new System.Exception ("The method or operation is not implemented."); | ||
} | ||
} | ||
} |
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 @@ | ||
// CS1948: A range variable `T' conflicts with a method type parameter | ||
// Line: 13 | ||
|
||
using System; | ||
using System.Linq; | ||
|
||
class C | ||
{ | ||
public static void Foo <T> () | ||
{ | ||
var s = "0"; | ||
var e = from T in "a" | ||
select T + s; | ||
} | ||
} |