Imported Upstream version 5.8.0.22

Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-10-19 20:04:20 +00:00
parent 5f4a27cc8a
commit 7d05485754
5020 changed files with 114082 additions and 186061 deletions

View File

@@ -38,8 +38,8 @@ TEST_SUPPORT_FILES = \
CS7069-lib.dll \
CS8009-lib.dll \
CSFriendAssembly-lib.dll \
dlls/first/CS1703-lib.dll dlls/first/CS1704-lib.dll \
dlls/second/CS1703-lib.dll dlls/second/CS1704-lib.dll
dlls/first/CS1704-lib.dll \
dlls/second/CS1704-lib.dll
-include $(mcs_topdir)/build/config.make

10
mcs/errors/cs0029-38.cs Normal file
View File

@@ -0,0 +1,10 @@
// CS0029: Cannot implicitly convert type `int' to `(long, bool)'
// Line: 8
class C
{
static void Test ()
{
System.ValueTuple<long, bool> arg = 1;
}
}

11
mcs/errors/cs0128-5.cs Normal file
View File

@@ -0,0 +1,11 @@
// CS0128: A local variable named `xx' is already defined in this scope
// Line: 9
class X
{
public static void Main ()
{
short xx;
var (xx, yy) = (1, 'g');
}
}

10
mcs/errors/cs0815-7.cs Normal file
View File

@@ -0,0 +1,10 @@
// CS0815: An implicitly typed local variable declaration cannot be initialized with `(int, method group)'
// Line: 8
class XX
{
public static void Main ()
{
var m = (1, Main);
}
}

10
mcs/errors/cs0826-11.cs Normal file
View File

@@ -0,0 +1,10 @@
// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
// Line: 8
class XX
{
public static void Main ()
{
var m = new [] { (1, Main) };
}
}

12
mcs/errors/cs0828-7.cs Normal file
View File

@@ -0,0 +1,12 @@
// CS0827: An anonymous type property `Prop' cannot be initialized with `(int, method group)'
// Line: 9
class XX
{
public static void Main ()
{
var m = new {
Prop = (1, Main)
};
}
}

View File

@@ -1,4 +1,4 @@
// CS1525: Unexpected symbol `==', expecting `type'
// CS1525: Unexpected symbol `==', expecting `(' or `type'
// Line: 8
class A

View File

@@ -1,4 +1,4 @@
// CS1525: Unexpected symbol `public', expecting `:', `;', or `{'
// CS1525: Unexpected symbol `public', expecting `:', `;', `{', or `=>'
// Line: 5
class TorrentEditor {

View File

@@ -1,4 +1,4 @@
// CS1525: Unexpected symbol `1', expecting `type'
// CS1525: Unexpected symbol `1', expecting `(' or `type'
// Line: 4
class M : 1

View File

@@ -1,4 +1,4 @@
// CS1525: Unexpected symbol `)', expecting `[', `out', `params', `ref', `this', or `type'
// CS1525: Unexpected symbol `)', expecting `(', `[', `out', `params', `ref', `this', or `type'
// Line: 6
class TestClass

View File

@@ -1,4 +1,4 @@
// CS1026: Unexpected symbol `;', expecting `)'
// CS1026: Unexpected symbol `;', expecting `)' or `,'
// Line: 10
using System;

View File

@@ -1,4 +1,4 @@
// CS1525: Unexpected symbol `this', expecting `[', `{', or `type'
// CS1525: Unexpected symbol `this', expecting `(', `[', `{', or `type'
// Line: 8
class M

11
mcs/errors/cs1644-53.cs Normal file
View File

@@ -0,0 +1,11 @@
// CS1644: Feature `tuples' cannot be used because it is not part of the C# 6.0 language specification
// Line: 7
// Compiler options: -langversion:6
class Class
{
static (int, bool) Foo ()
{
return;
}
}

11
mcs/errors/cs1644-54.cs Normal file
View File

@@ -0,0 +1,11 @@
// CS1644: Feature `tuples' cannot be used because it is not part of the C# 6.0 language specification
// Line: 9
// Compiler options: -langversion:6
class Class
{
static void Main ()
{
var t = (a: 1, b: 2);
}
}

View File

@@ -1,4 +1,4 @@
// CS1703: An assembly `System' with the same identity has already been imported. Consider removing one of the references
// Line: 0
// Compiler options: -r:../class/lib/build/System.dll
// Compiler options: -r:../../external/binary-reference-assemblies/v2.0/System.dll

View File

@@ -1,4 +0,0 @@
// CS1703: An assembly `CS1703-lib' with the same identity has already been imported. Consider removing one of the references
// Line: 0
// Compiler options: -r:dlls/first/CS1703-lib.dll -r:dlls/second/CS1703-lib.dll

11
mcs/errors/cs8123-2.cs Normal file
View File

@@ -0,0 +1,11 @@
// CS8123: The tuple element name `a' is ignored because a different name or no name is specified by the target type `(int, int)'
// Line: 9
// Compiler options: -warnaserror
class C
{
public static void Main ()
{
(int tt1, int tt2) t = (a: 1, 2);
}
}

11
mcs/errors/cs8123.cs Normal file
View File

@@ -0,0 +1,11 @@
// CS8123: The tuple element name `b' is ignored because a different name or no name is specified by the target type `(long, string)'
// Line: 9
// Compiler options: -warnaserror
static class X
{
static (long a, string x) Test ()
{
return (b: 1, "");
}
}

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

@@ -0,0 +1,9 @@
// CS8124: Tuple must contain at least two elements
// Line: 6
class X
{
static (int) Foo ()
{
}
}

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

@@ -0,0 +1,9 @@
// CS8125: The tuple element name `Item22' can only be used at position 22
// Line: 6
class C
{
static void Test ((int Item22, int b) arg)
{
}
}

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