You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.142
Former-commit-id: 7467d4b717762eeaf652d77f1486dd11ffb1ff1f
This commit is contained in:
parent
e52655b4dc
commit
0abdbe5a7d
22
mcs/errors/cs0280.cs
Normal file
22
mcs/errors/cs0280.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// CS0280: `C.Fixable.GetPinnableReference(int)' has the wrong signature to be used in extensible fixed statement
|
||||
// Line: 11
|
||||
// Compiler options: -unsafe -langversion:latest -warnaserror
|
||||
|
||||
using System;
|
||||
|
||||
unsafe class C
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
fixed (int* p = new Fixable ()) {
|
||||
}
|
||||
}
|
||||
|
||||
struct Fixable
|
||||
{
|
||||
public ref int GetPinnableReference (int i = 1)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
8
mcs/errors/cs1611-2.cs
Normal file
8
mcs/errors/cs1611-2.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
// CS1611: The params parameter cannot be declared as ref, out or in
|
||||
// Line: 6
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
class Test
|
||||
{
|
||||
public static void Error (params in int args) {}
|
||||
}
|
||||
22
mcs/errors/cs1644-63.cs
Normal file
22
mcs/errors/cs1644-63.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// CS1644: Feature `extensible fixed statement' cannot be used because it is not part of the C# 7.2 language specification
|
||||
// Line: 11
|
||||
// Compiler options: -unsafe -langversion:7.2
|
||||
|
||||
using System;
|
||||
|
||||
unsafe class C
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
fixed (int* p = new Fixable ()) {
|
||||
}
|
||||
}
|
||||
|
||||
struct Fixable
|
||||
{
|
||||
public ref int GetPinnableReference ()
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
13
mcs/errors/cs1644-64.cs
Normal file
13
mcs/errors/cs1644-64.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
// CS1644: Feature `expression body property accessor' cannot be used because it is not part of the C# 6.0 language specification
|
||||
// Line: 11
|
||||
// Compiler options: -langversion:6
|
||||
|
||||
using System;
|
||||
|
||||
class C
|
||||
{
|
||||
public int Integer
|
||||
{
|
||||
get => 0;
|
||||
}
|
||||
}
|
||||
13
mcs/errors/cs1644-65.cs
Normal file
13
mcs/errors/cs1644-65.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
// CS1644: Feature `expression body property accessor' cannot be used because it is not part of the C# 6.0 language specification
|
||||
// Line: 11
|
||||
// Compiler options: -langversion:6
|
||||
|
||||
using System;
|
||||
|
||||
class C
|
||||
{
|
||||
public int this[int i]
|
||||
{
|
||||
get => i;
|
||||
}
|
||||
}
|
||||
17
mcs/errors/cs1644-66.cs
Normal file
17
mcs/errors/cs1644-66.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// CS1644: Feature `expression body event accessor' cannot be used because it is not part of the C# 6.0 language specification
|
||||
// Line: 11
|
||||
// Compiler options: -langversion:6
|
||||
|
||||
using System;
|
||||
|
||||
class C
|
||||
{
|
||||
public event EventHandler Event
|
||||
{
|
||||
add => Ignore ();
|
||||
}
|
||||
|
||||
static void Ignore ()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0428: Cannot convert method group `Main' to non-delegate type `void*'. Consider using parentheses to invoke the method
|
||||
// CS8385: The given expression cannot be used in a fixed statement
|
||||
// Line: 9
|
||||
// Compiler options: -unsafe
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// CS0213: You cannot use the fixed statement to take the address of an already fixed expression
|
||||
// CS8385: The given expression cannot be used in a fixed statement
|
||||
// Line: 9
|
||||
// Compiler options: -unsafe
|
||||
|
||||
Reference in New Issue
Block a user