Imported Upstream version 4.2.0.179

Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent 183bba2c9a
commit 6992685b86
7507 changed files with 90259 additions and 657307 deletions

4
mcs/errors/CS0101-9-2.cs Normal file
View File

@@ -0,0 +1,4 @@
namespace N
{
class Test<T> {}
}

View File

@@ -0,0 +1,8 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("cs0122-38, PublicKeyToken=<ad60da1470a03d36")]
class Internal
{
}

View File

@@ -22,7 +22,7 @@ DISTFILES = \
TEST_SUPPORT_FILES = \
CS0012-lib.dll CS0012-2-lib.dll CS0012-3-lib.dll CS0012-4-lib.dll CS0012-5-lib.dll CS0012-6-lib.dll CS0012-9-lib.dll CS0012-10-lib.dll CS0012-11-lib.dll CS0012-12-lib.dll CS0012-13-lib.dll CS0012-14-lib.dll CS0012-15-lib.dll CS0012-16-lib.dll CS0012-17-lib.dll CS0012-18-lib.dll CS0012-21-lib.dll CS0012-22-lib.dll CS0012-23-lib.dll CS0012-24-lib.dll CS0019-71-lib.dll CS0029-26-lib.dll \
CS0103-2-lib.dll CS0118-2-lib.dll CS0122-8-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll CS0122-19-lib.dll CS0122-35-lib.dll CS0122-36-lib.dll CS0143-lib.dll CS0144-3-lib.dll CS0165-19-lib.dll CS0165-51-lib.dll \
CS0103-2-lib.dll CS0118-2-lib.dll CS0122-8-lib.dll CS0122-10-lib.dll CS0122-14-lib.dll CS0122-15-lib.dll CS0122-19-lib.dll CS0122-35-lib.dll CS0122-36-lib.dll CS0122-38-lib.dll CS0143-lib.dll CS0144-3-lib.dll CS0165-19-lib.dll CS0165-51-lib.dll \
CS0205-3-lib.dll CS0246-29-lib.dll CS0229-3-lib.dll CS0229-4-lib.dll CS0266-25-lib.dll \
CS0315-2-lib.dll \
CS0425-7-lib.dll CS0433-lib.dll CS0433-2-lib.dll \

8
mcs/errors/cs0101-9.cs Normal file
View File

@@ -0,0 +1,8 @@
// CS0101: The namespace `N' already contains a definition for `Test<T>'
// Line: 7
// Compiler options: CS0101-9-2.cs
namespace N
{
class Test<T> {}
}

35
mcs/errors/cs0104-5.cs Normal file
View File

@@ -0,0 +1,35 @@
// CS0104: `N' is an ambiguous reference between `C.N' and `A.T.N'
// Line: 32
namespace A
{
public class T
{
public class N
{
}
}
}
namespace C
{
struct N
{
}
}
namespace B
{
using static A.T;
using C;
static class Program
{
static void Main ()
{
var u = new N ();
}
}
}

11
mcs/errors/cs0122-38.cs Normal file
View File

@@ -0,0 +1,11 @@
// CS0122: `Internal' is inaccessible due to its protection level
// Line: 9
// Compiler options: -r:CS0122-38-lib.dll
class M
{
public static void Main ()
{
new Internal ();
}
}

14
mcs/errors/cs0200-7.cs Normal file
View File

@@ -0,0 +1,14 @@
// CS0200: Property or indexer `MyClass.Type' cannot be assigned to (it is read-only)
// Line: 12
using System;
public class MyClass
{
Type Type { get; }
public void Test ()
{
Type = typeof (string);
}
}

18
mcs/errors/cs0246-34.cs Normal file
View File

@@ -0,0 +1,18 @@
// CS0246: The type or namespace name `wrong' could not be found. Are you missing an assembly reference?
// Line: 15
using System;
class X
{
static void Foo<T> () where T : class
{
}
public static void Main ()
{
Action a = () => {
Foo<wrong> ();
};
}
}

23
mcs/errors/cs0246-35.cs Normal file
View File

@@ -0,0 +1,23 @@
// CS0246: The type or namespace name `B' could not be found. Are you missing an assembly reference?
// Line: 21
using static A;
class A : B
{
}
class P
{
public class N<T>
{
}
}
class Test
{
public static void Main ()
{
var n = default (N<int>);
}
}

View File

@@ -1,4 +1,4 @@
// CS0419: Ambiguous reference in cref attribute `XmlDocument.Load'. Assuming `System.Xml.XmlDocument.Load(System.IO.Stream)' but other overloads including `System.Xml.XmlDocument.Load(string)' have also matched
// CS0419: Ambiguous reference in cref attribute `XmlDocument.Load'. Assuming `System.Xml.XmlDocument.Load(string)' but other overloads including `System.Xml.XmlDocument.Load(System.IO.Stream)' have also matched
// Line: 10
// Compiler options: -doc:dummy.xml -warnaserror -warn:4
//

View File

@@ -1,9 +0,0 @@
// CS0516: Constructor `Sample.Sample()' cannot call itself
// Line: 6
struct Sample {
public Sample ()
: this ()
{
}
}

9
mcs/errors/cs0568-2.cs Normal file
View File

@@ -0,0 +1,9 @@
// CS0568: Structs cannot contain explicit parameterless constructors
// Line: 5
struct Sample {
public Sample ()
: this ()
{
}
}

9
mcs/errors/cs0568.cs Normal file
View File

@@ -0,0 +1,9 @@
// CS0568: Structs cannot contain explicit parameterless constructors
// Line: 6
struct S
{
public S ()
{
}
}

View File

@@ -1,20 +0,0 @@
// CS0619: `S.S()' is obsolete: `ctor'
// Line: 18
using System;
struct S
{
[Obsolete ("ctor", true)]
public S ()
{
}
}
class C
{
public static void Main ()
{
new S ();
}
}

13
mcs/errors/cs0815-8.cs Normal file
View File

@@ -0,0 +1,13 @@
// CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method'
// Line: 11
using System;
using System.Threading.Tasks;
class X
{
public static void Main ()
{
Task.Run(async () => { var a = async () => { }; Console.WriteLine(a); });
}
}

6
mcs/errors/cs1056-2.cs Normal file
View File

@@ -0,0 +1,6 @@
// CS1056: Unexpected character `\0001'
// Line: 4
na\u0001espace Test
{
}

6
mcs/errors/cs1056-3.cs Normal file
View File

@@ -0,0 +1,6 @@
// CS1056: Unexpected character `\0001'
// Line: 4
\u0001namespace Test
{
}

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test.PrivateField2' is not well-formed XML markup ('summary' is expected Line 3, position 4.)
// CS1570: XML documentation comment on `Testing.Test.PrivateField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.)
// Line: 23
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test.PublicProperty2' is not well-formed XML markup ('summary' is expected Line 3, position 4.)
// CS1570: XML documentation comment on `Testing.Test.PublicProperty2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.)
// Line: 32
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Test' is not well-formed XML markup (Cannot insert specified type of node as a child of this node.)
// CS1570: XML documentation comment on `Test' is not well-formed XML markup (Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 3, position 3.)
// Line: 13
// Compiler options: -doc:dummy.xml -warnaserror -warn:1

Some files were not shown because too many files have changed in this diff Show More