You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
10
mcs/errors/cs0029-42.cs
Normal file
10
mcs/errors/cs0029-42.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
// CS0029: Cannot implicitly convert type `string' to `int'
|
||||
// Line: 8
|
||||
|
||||
class C
|
||||
{
|
||||
void Exists (int _)
|
||||
{
|
||||
_ = "2";
|
||||
}
|
||||
}
|
10
mcs/errors/cs0103-18.cs
Normal file
10
mcs/errors/cs0103-18.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
// CS0103: The name `_' does not exist in the current context
|
||||
// Line: 8
|
||||
|
||||
class C
|
||||
{
|
||||
void Test ()
|
||||
{
|
||||
_.ToString ();
|
||||
}
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
// CS1502: The best overloaded method match for `string.String(char*)' has some invalid arguments
|
||||
// Line: 8
|
||||
|
||||
class C
|
||||
{
|
||||
static string Prop {
|
||||
get {
|
||||
return new string ("s");
|
||||
}
|
||||
}
|
||||
}
|
11
mcs/errors/cs1644-60.cs
Normal file
11
mcs/errors/cs1644-60.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
// CS1644: Feature `discards' cannot be used because it is not part of the C# 6.0 language specification
|
||||
// Line: 9
|
||||
// Compiler options: -langversion:6
|
||||
|
||||
class X
|
||||
{
|
||||
int Test ()
|
||||
{
|
||||
_ = 2;
|
||||
}
|
||||
}
|
11
mcs/errors/cs8183.cs
Normal file
11
mcs/errors/cs8183.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
// CS8183: Cannot infer the type of implicitly-typed discard
|
||||
// Line: 9
|
||||
// Compiler options: -langversion:7.2
|
||||
|
||||
class X
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
_ = default;
|
||||
}
|
||||
}
|
10
mcs/errors/cs8184.cs
Normal file
10
mcs/errors/cs8184.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
// CS8184: A deconstruction cannot mix declarations and expressions on the left-hand-side
|
||||
// Line: 8
|
||||
|
||||
class X
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
(int a, b) = (1, 2);
|
||||
}
|
||||
}
|
19
mcs/errors/cs8207.cs
Normal file
19
mcs/errors/cs8207.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// CS8207: An expression tree cannot contain a discard
|
||||
// Line: 11
|
||||
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
class X
|
||||
{
|
||||
void Test ()
|
||||
{
|
||||
Expression<Func<bool>> e = () => TryGetValue (out _);
|
||||
}
|
||||
|
||||
bool TryGetValue (out int arg)
|
||||
{
|
||||
arg = 3;
|
||||
return true;
|
||||
}
|
||||
}
|
10
mcs/errors/cs8209.cs
Normal file
10
mcs/errors/cs8209.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
// CS8209: Cannot assign void to a discard
|
||||
// Line: 8
|
||||
|
||||
class C
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
_ = Main ();
|
||||
}
|
||||
}
|
15
mcs/errors/cs8323.cs
Normal file
15
mcs/errors/cs8323.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// CS8323: Named argument `str' is used out of position but is followed by positional argument
|
||||
// Line: 9
|
||||
// Compiler options: -langversion:7.2
|
||||
|
||||
class X
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
Test (str: "", "");
|
||||
}
|
||||
|
||||
static void Test (int arg, string str)
|
||||
{
|
||||
}
|
||||
}
|
12
mcs/errors/cs8324.cs
Normal file
12
mcs/errors/cs8324.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// CS8324: Named argument specifications must appear after all fixed arguments have been specified in a dynamic invocation
|
||||
// Line: 10
|
||||
// Compiler options: -langversion:7.2
|
||||
|
||||
class C
|
||||
{
|
||||
void M ()
|
||||
{
|
||||
dynamic d = new object ();
|
||||
d.M (arg: 1, "");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user