Skip to content

Commit

Permalink
Flush (work in progress)
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=156168
  • Loading branch information
marek-safar committed Apr 27, 2010
2 parents 46b3c95 + c292825 commit 0900c61
Show file tree
Hide file tree
Showing 63 changed files with 251 additions and 170 deletions.
5 changes: 1 addition & 4 deletions mcs/errors/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ all-local $(STD_TARGETS:=-local):
VALID_PROFILE := $(filter net_2_0 moonlight net_4_0, $(PROFILE))
ifdef VALID_PROFILE

check: run-mcs-tests
qcheck: run-mcs-tests

# again, run-test is when the tests actually happen, so
# don't compile on make test.
Expand Down Expand Up @@ -72,9 +72,6 @@ TESTER_OPTIONS +=-compiler-options:-v
run-mcs-tests: $(TEST_SUPPORT_FILES)
$(TESTER) -mode:neg -files:$(TEST_PATTERN) -compiler:$(COMPILER) -issues:known-issues-$(COMPILER_NAME) -log:$(COMPILER_NAME).log $(TESTER_OPTIONS)

cecil:
$(TESTER) -mode:neg -files:$(TEST_PATTERN) -compiler:../tests/gmcs.exe -issues:known-issues-$(COMPILER_NAME) -log:$(COMPILER_NAME).log $(TESTER_OPTIONS) -verbose

endif

clean-local:
Expand Down
17 changes: 17 additions & 0 deletions mcs/errors/cs0111-3.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// CS0111:
// Line: 8

using System;

class Test {}

namespace Test
{
public class Foo
{
public static void Main ()
{
Test t = new Test ();
}
}
}
7 changes: 3 additions & 4 deletions mcs/errors/cs0467-3.cs → mcs/errors/cs0121-10.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// cs0467-3.cs: Ambiguity between method `ICounter.Count()' and non-method `ICollection.Count'. Using method `ICounter.Count()'
// Line: 34
// Compiler options: -warnaserror -warn:2
// CS0121: The call is ambiguous between the following methods or properties: `IList.Count()' and `ICounter.Count()'
// Line: 33

using System;

Expand Down Expand Up @@ -33,4 +32,4 @@ static void Foo (IListCounterNew t)
{
t.Count ();
}
}
}
2 changes: 1 addition & 1 deletion mcs/errors/cs0121-3.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0121: The call is ambiguous between the following methods or properties: `B.operator +(A, B)' and `A.operator +(A, B)'
// CS0121: The call is ambiguous between the following methods or properties: `A.operator +(A, B)' and `B.operator +(A, B)'
// Line: 21

class A
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs0121-5.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0121: The call is ambiguous between the following methods or properties: `V3.operator -(V3, V3)' and `V2.operator -(V2, V2)'
// CS0121: The call is ambiguous between the following methods or properties: `V2.operator -(V2, V2)' and `V3.operator -(V3, V3)'
// Line: 45

public struct V3
Expand Down
7 changes: 3 additions & 4 deletions mcs/errors/cs0467-2.cs → mcs/errors/cs0121-9.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// cs0467-2.cs: Ambiguity between method `ICounter.Count()' and non-method `ICollection.Count'. Using method `ICounter.Count()'
// Line: 30
// Compiler options: -warnaserror -warn:2
// CS0121: The call is ambiguous between the following methods or properties: `IList.Count()' and `ICounter.Count()'
// Line: 29

using System;

Expand Down Expand Up @@ -29,4 +28,4 @@ static void Foo (IListCounter t)
{
t.Count ();
}
}
}
2 changes: 1 addition & 1 deletion mcs/errors/cs0122-27.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0122: `G.GG.F' is inaccessible due to its protection level
// CS0122: `G.GG' is inaccessible due to its protection level
// Line: 14

class G
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs0146-3.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs0146-3.cs: Circular base class dependency involving `Foo.Bar' and `Foo'
// CS0146: Circular base class dependency involving `Foo' and `Foo.Bar'
// Line: 5

class Foo : Foo.Bar {
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs0146-4.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs0146-4.cs: Circular base class dependency involving `Foo.Bar' and `Foo'
// CS0146: Circular base class dependency involving `Baz' and `Foo.Bar'
// Line: 5

class Foo : Baz {
Expand Down
4 changes: 2 additions & 2 deletions mcs/errors/cs0278.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0278: `Testing.IMixedEnumerable' contains ambiguous implementation of `enumerable' pattern. Method `Testing.ICustomEnumerable.GetEnumerator()' is ambiguous with method `System.Collections.IEnumerable.GetEnumerator()'
// CS0278: `Testing.IMixedEnumerable' contains ambiguous implementation of `enumerable' pattern. Method `System.Collections.IEnumerable.GetEnumerator()' is ambiguous with method `Testing.ICustomEnumerable.GetEnumerator()'
// Line: 28
// Compiler options: -warnaserror -warn:2

Expand Down Expand Up @@ -28,4 +28,4 @@ public static void Main(string[] args) {
foreach(object o in c) {}
}
}
}
}
2 changes: 1 addition & 1 deletion mcs/errors/cs0419-2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs0419-2.cs: Ambiguous reference in cref attribute `A.this'. Assuming `Test.A.this[string]' but other overloads including `Test.A.this[int]' have also matched
// CS0419: Ambiguous reference in cref attribute `A.this'. Assuming `Test.A.this[int]' but other overloads including `Test.A.this[string]' have also matched
// Line: 7
// Compiler options: -doc:dummy.xml -warnaserror
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs0436.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0436: The type `System.Console' conflicts with the imported type `System.Console'. Ignoring the imported type definition
// CS0436: The type `System.Console' conflicts with the imported type of same name'. Ignoring the imported type definition
// Line: 16
// Compiler options: -warn:2 -warnaserror

Expand Down
32 changes: 0 additions & 32 deletions mcs/errors/cs0467.cs

This file was deleted.

17 changes: 17 additions & 0 deletions mcs/errors/cs0507-6.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// CS0507: `DerivedClass.Message': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message'
// Line: 12

class BaseClass {
public virtual string Message {
set {
}
}
}

class DerivedClass : BaseClass {
protected override string Message {
set {
}
}
}

6 changes: 3 additions & 3 deletions mcs/errors/cs0527-2.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// cs0527-2.cs: Type `A' in interface list is not an interface
// Line: 7
// CS0527: Type `B' in interface list is not an interface
// Line: 4

struct A : B {
}

struct B : A {
}
}
4 changes: 2 additions & 2 deletions mcs/errors/cs0529.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs0529.cs: Inherited interface `A' causes a cycle in the interface hierarchy of `C'
// CS0529: Inherited interface `C' causes a cycle in the interface hierarchy of `A'
// Line: 10

interface A : B {
Expand All @@ -8,4 +8,4 @@ interface B : C {
}

interface C : A {
}
}
13 changes: 13 additions & 0 deletions mcs/errors/cs0533-5.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// CS0533: `DerivedClass.Foo' hides inherited abstract member `BaseClass.Foo()'
// Line: 11

abstract public class BaseClass
{
abstract protected void Foo ();
}

abstract class DerivedClass: BaseClass
{
public new int Foo;
}

2 changes: 1 addition & 1 deletion mcs/errors/cs0683.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs0683.cs: `C.I.set_Foo(int)' explicit method implementation cannot implement `I.Foo' because it is an accessor
// CS0683: `C.I.set_Foo(int)' explicit method implementation cannot implement `I.Foo.set' because it is an accessor
// Line: 11

interface I
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs0738-2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0738: `C' does not implement interface member `I2.Key.get' and the best implementing candidate `C.Key' return type `IB' does not match interface member return type `IA'
// CS0738: `C' does not implement interface member `I2.Key.get' and the best implementing candidate `C.Key.get' return type `IB' does not match interface member return type `IA'
// Line: 22

public interface I1
Expand Down
5 changes: 3 additions & 2 deletions mcs/errors/cs0619-41.cs → mcs/errors/cs0809-2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// cs0619-41.cs: `A.Filename' is obsolete: `Obsolete'
// CS0809: Obsolete member `A.Filename' overrides non-obsolete member `Error.Filename'
// Line: 8
// Compiler options: -warnaserror

class A: Error {
[System.ObsoleteAttribute ("Obsolete", true)]
Expand All @@ -25,4 +26,4 @@ class B {
void TT () {
new A ().Filename = "Filename";
}
}
}
5 changes: 3 additions & 2 deletions mcs/errors/cs0117-3.cs → mcs/errors/cs1061-2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// cs0117-3.cs: `A' does not contain a definition for `Foo'
// Line: 16
// CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found (are you missing a using directive or an assembly reference?)
// Line: 17

using System;
using System.Runtime.CompilerServices;

Expand Down
5 changes: 3 additions & 2 deletions mcs/errors/cs0117-2.cs → mcs/errors/cs1061.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// cs0117-2.cs: `A' does not contain a definition for `Foo'
// Line: 15
// CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found (are you missing a using directive or an assembly reference?)
// Line: 16

using System;
using System.Runtime.CompilerServices;

Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs1546.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs1546.cs: Property `Title' is not supported by the C# language. Try to call the accessor method `Test.ITopic.get_Title(int, int)' directly
// CS1546: Property or event `Test.ITopic.Title' is not supported by the C# language
// Line: 9
// Compiler options: -r:CS1546-lib.dll

Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs1685.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS1685: The predefined type `System.Int32' is ambiguous. Using definition from `mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
// CS1685: The predefined type `System.Int32' is redefined in the source code. Ignoring the local type definition
// Line: 6
// Compiler options: -warn:1 -warnaserror

Expand Down
3 changes: 1 addition & 2 deletions mcs/errors/cs1739-2.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// CS1739: The best overloaded method match for `A.this[int]' does not contain a parameter named `value'
// CS1739: The best overloaded method match for `A.this[int].set' does not contain a parameter named `value'
// Line: 17
// Compiler options: -langversion:future

class A
{
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/cs3005-2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// cs3005-2.cs: Identifier `CLSClass.Index' differing only in case is not CLS-compliant
// CS3005: Identifier `CLSClass.Index.get' differing only in case is not CLS-compliant
// Line: 14
// Compiler options: -warnaserror

Expand Down
4 changes: 2 additions & 2 deletions mcs/errors/cs3005-20.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// CS3005: Identifier `I.this[int]' differing only in case is not CLS-compliant
// Line: 12
// CS3005: Identifier `I.BLAH.get' differing only in case is not CLS-compliant
// Line: 16
// Compiler options: -warnaserror

using System.Runtime.CompilerServices;
Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/gcs0108.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0108: `BaseConcrete.InnerDerived<T>()' hides inherited member `BaseGeneric<T>.InnerDerived'. Use the new keyword if hiding was intended
// CS0108: `BaseConcrete.InnerDerived<T>()' hides inherited member `BaseGeneric<string>.InnerDerived'. Use the new keyword if hiding was intended
// Line: 14
// Compiler options: -warn:2 -warnaserror

Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/gcs0122-2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// CS0122: `Test<A>' is inaccessible due to its protection level
// CS0122: `Test<float>' is inaccessible due to its protection level
// Line: 8
// Compiler options: -r:GCS0122-2-lib.dll

Expand Down
2 changes: 1 addition & 1 deletion mcs/errors/gcs0146.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// gcs0146.cs: Circular base class dependency involving `B<T>' and `A<T>'
// CS0146: Circular base class dependency involving `B<T>' and `A<float>'
// Line: 8

class A<T> : B<int>
Expand Down
9 changes: 0 additions & 9 deletions mcs/errors/gcs0246-2.cs

This file was deleted.

7 changes: 7 additions & 0 deletions mcs/errors/gcs0246-5.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// CS0246: The type or namespace name `X' could not be found. Are you missing a using directive or an assembly reference?
// Line: 4

class A<T> where T : X
{
public class X {}
}
18 changes: 18 additions & 0 deletions mcs/errors/gcs0246-6.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// CS0246: The type or namespace name `M' could not be found. Are you missing a using directive or an assembly reference?
// Line: 11

interface I<T>
{
void G<TT> ();
}

class C
{
void I<M>.G<M> ()
{
}

public static void Main ()
{
}
}
2 changes: 1 addition & 1 deletion mcs/errors/gcs0246.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// gcs0246.cs: The type or namespace name `NotExist`1' could not be found. Are you missing a using directive or an assembly reference?
// CS0246: The type or namespace name `NotExist' could not be found. Are you missing a using directive or an assembly reference?
// Line: 6

class X
Expand Down
4 changes: 2 additions & 2 deletions mcs/errors/gcs0304.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// CS0304: Cannot create an instance of the variable type 'T' because it doesn't have the new() constraint
// Line: 9
// CS0304: Cannot create an instance of the variable type `T' because it does not have the new() constraint
// Line: 8

public class Foo<T>
{
Expand Down
9 changes: 9 additions & 0 deletions mcs/errors/gcs0305-6.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s)
// Line: 8

using System.Collections.Generic;

class X
{
List<int,long> list;
}
21 changes: 0 additions & 21 deletions mcs/errors/gcs0309-4.cs

This file was deleted.

Loading

0 comments on commit 0900c61

Please sign in to comment.