Skip to content

Commit

Permalink
New tests.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=158060
  • Loading branch information
marek-safar committed May 27, 2010
2 parents 5995e11 + c0b7a68 commit 5cddeea
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mcs/errors/cs0535-5.cs
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.
15 changes: 15 additions & 0 deletions mcs/errors/gcs0508-2.cs
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.");
}
}
}
15 changes: 15 additions & 0 deletions mcs/errors/gcs1948-2.cs
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;
}
}

0 comments on commit 5cddeea

Please sign in to comment.