You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -69,7 +69,7 @@ TEST_PATTERN = 'v4'
|
||||
TESTER_OPTIONS = -compiler-options:"-v --break-on-ice -d:NET_4_0;NET_4_5"
|
||||
|
||||
COMPILER = $(topdir)/class/lib/$(PROFILE)/mcs.exe
|
||||
TESTER = MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(LOCAL_RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe
|
||||
TESTER = MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $(LOCAL_RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe
|
||||
|
||||
run-mcs-tests: $(TEST_SUPPORT_FILES)
|
||||
$(TESTER) -mode:neg -files:$(TEST_PATTERN) -compiler:$(COMPILER) -issues:known-issues-$(PROFILE) -log:$(PROFILE).log $(TESTER_OPTIONS) $(TOPTIONS)
|
||||
|
||||
11
mcs/errors/cs0023-30.cs
Normal file
11
mcs/errors/cs0023-30.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
// CS0023: The `is' operator cannot be applied to operand of type `default'
|
||||
// Line: 9
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
class C
|
||||
{
|
||||
static void Main ()
|
||||
{
|
||||
bool d = default is C;
|
||||
}
|
||||
}
|
||||
15
mcs/errors/cs0029-39.cs
Normal file
15
mcs/errors/cs0029-39.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// CS0029: Cannot implicitly convert type `S' to `object'
|
||||
// Line: 13
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
public ref struct S
|
||||
{
|
||||
}
|
||||
|
||||
class Test
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
object o = new S ();
|
||||
}
|
||||
}
|
||||
19
mcs/errors/cs0029-40.cs
Normal file
19
mcs/errors/cs0029-40.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// CS0029: Cannot implicitly convert type `S' to `System.ValueType'
|
||||
// Line: 16
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
using System;
|
||||
|
||||
public ref struct S
|
||||
{
|
||||
}
|
||||
|
||||
class Test
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
var s = default (S);
|
||||
ValueType s2 = s;
|
||||
var res = default (S).ToString ();
|
||||
}
|
||||
}
|
||||
12
mcs/errors/cs0029-41.cs
Normal file
12
mcs/errors/cs0029-41.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// CS0029: Cannot implicitly convert type `System.TypedReference' to `object'
|
||||
// Line: 10
|
||||
|
||||
using System;
|
||||
|
||||
class Test
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
var res = default (TypedReference).ToString ();
|
||||
}
|
||||
}
|
||||
15
mcs/errors/cs0030-17.cs
Normal file
15
mcs/errors/cs0030-17.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// CS0030: Cannot convert type `object' to `S'
|
||||
// Line: 13
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
ref struct S
|
||||
{
|
||||
}
|
||||
|
||||
class X
|
||||
{
|
||||
public static void Foo (object o)
|
||||
{
|
||||
var res = (S) o;
|
||||
}
|
||||
}
|
||||
7
mcs/errors/cs0106-11.cs
Normal file
7
mcs/errors/cs0106-11.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
// CS0106: The modifier `readonly' is not valid for this item
|
||||
// Line: 6
|
||||
// Compiler option: -langversion:latest
|
||||
|
||||
readonly interface I
|
||||
{
|
||||
}
|
||||
18
mcs/errors/cs0123-10.cs
Normal file
18
mcs/errors/cs0123-10.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters
|
||||
// Line: 16
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
using System;
|
||||
|
||||
public ref struct S
|
||||
{
|
||||
}
|
||||
|
||||
class Test
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
var s = new S ();
|
||||
Func<string> f = s.ToString;
|
||||
}
|
||||
}
|
||||
12
mcs/errors/cs0123-11.cs
Normal file
12
mcs/errors/cs0123-11.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// CS0123: A method or delegate `object.ToString()' parameters do not match delegate `System.Func<string>()' parameters
|
||||
// Line: 16
|
||||
|
||||
using System;
|
||||
|
||||
class Test
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
Func<string> f = default (TypedReference).ToString;
|
||||
}
|
||||
}
|
||||
15
mcs/errors/cs0131-6.cs
Normal file
15
mcs/errors/cs0131-6.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
|
||||
// Line: 8
|
||||
|
||||
class X
|
||||
{
|
||||
void Test ()
|
||||
{
|
||||
Foo () = 1;
|
||||
}
|
||||
|
||||
static int Foo ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0133: The expression being assigned to `c' must be constant
|
||||
// CS0133: The expression being assigned to `c' must be a constant or default value
|
||||
// Line: 10
|
||||
|
||||
class C
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// CS0133: The expression being assigned to `Foo' must be constant
|
||||
// Line: 12
|
||||
// CS0133: The expression being assigned to `Foo' must be a constant or default value
|
||||
// Line: 8
|
||||
|
||||
class T
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0133: The expression being assigned to `S.pathName' must be constant
|
||||
// CS0133: The expression being assigned to `S.pathName' must be a constant or default value
|
||||
// Line: 12
|
||||
// Compiler options: -unsafe
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0133: The expression being assigned to `b' must be constant
|
||||
// CS0133: The expression being assigned to `b' must be a constant or default value
|
||||
// Line: 8
|
||||
|
||||
class X
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0133: The expression being assigned to `o' must be constant
|
||||
// CS0133: The expression being assigned to `o' must be a constant or default value
|
||||
// Line: 8
|
||||
|
||||
class X
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0133: The expression being assigned to `o' must be constant
|
||||
// CS0133: The expression being assigned to `o' must be a constant or default value
|
||||
// Line: 8
|
||||
|
||||
class X
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// CS0133: The expression being assigned to `x' must be constant
|
||||
// Line: 6
|
||||
// CS0133: The expression being assigned to `x' must be a constant or default value
|
||||
// Line: 7
|
||||
|
||||
class X {
|
||||
X (int arg)
|
||||
{
|
||||
|
||||
16
mcs/errors/cs0136-6.cs
Normal file
16
mcs/errors/cs0136-6.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// CS0136: A local variable named `s' cannot be declared in this scope because it would give a different meaning to `s', which is already used in a `parent or current' scope to denote something else
|
||||
// Line: 11
|
||||
|
||||
using System;
|
||||
|
||||
class X
|
||||
{
|
||||
void Test2 (object o)
|
||||
{
|
||||
if (o is ValueType s) {
|
||||
if (o is long s) {
|
||||
Console.WriteLine (s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
mcs/errors/cs0199-2.cs
Normal file
12
mcs/errors/cs0199-2.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// CS0199: A static readonly field `X.f' cannot be passed ref or out (except in a static constructor)
|
||||
// Line: 10
|
||||
|
||||
class X
|
||||
{
|
||||
static readonly int f = 0;
|
||||
|
||||
public static void Main ()
|
||||
{
|
||||
ref int j = ref f;
|
||||
}
|
||||
}
|
||||
12
mcs/errors/cs0206-5.cs
Normal file
12
mcs/errors/cs0206-5.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
|
||||
// Line: 10
|
||||
|
||||
class X
|
||||
{
|
||||
static int P { get; set; }
|
||||
|
||||
static void Main ()
|
||||
{
|
||||
ref int rl = ref P;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user