You've already forked linux-packaging-mono
Imported Upstream version 4.2.1.91
Former-commit-id: b6ad0994c58eaf044e2599fe2ff7996e073c87d2
This commit is contained in:
committed by
Jo Shields
parent
bdd40f83c0
commit
bac3554225
6
mcs/tests/gtest-autoproperty-21-lib.cs
Normal file
6
mcs/tests/gtest-autoproperty-21-lib.cs
Normal file
@ -0,0 +1,6 @@
|
||||
// Compiler options: -t:library
|
||||
|
||||
public abstract class Base
|
||||
{
|
||||
public abstract string Value { get; }
|
||||
}
|
16
mcs/tests/gtest-autoproperty-21.cs
Normal file
16
mcs/tests/gtest-autoproperty-21.cs
Normal file
@ -0,0 +1,16 @@
|
||||
// Compiler options: -r:gtest-autoproperty-21-lib.dll
|
||||
|
||||
public class Subclass : Base
|
||||
{
|
||||
public override string Value { get; }
|
||||
|
||||
public Subclass ()
|
||||
{
|
||||
Value = "test";
|
||||
}
|
||||
|
||||
public static void Main ()
|
||||
{
|
||||
new Subclass ();
|
||||
}
|
||||
}
|
21
mcs/tests/test-async-80.cs
Normal file
21
mcs/tests/test-async-80.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.Threading.Tasks;
|
||||
using System;
|
||||
|
||||
class X
|
||||
{
|
||||
public async Task Test<T, U> (int arg)
|
||||
{
|
||||
await Task.Run (async () => {
|
||||
await Task.Run (async () => {
|
||||
Console.WriteLine (this);
|
||||
});
|
||||
return arg;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public static void Main ()
|
||||
{
|
||||
new X().Test<int, long>(1).Wait ();
|
||||
}
|
||||
}
|
23
mcs/tests/test-dictinit-05.cs
Normal file
23
mcs/tests/test-dictinit-05.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
class A {
|
||||
public A ()
|
||||
{
|
||||
Info = new Dictionary<string, int>();
|
||||
}
|
||||
|
||||
public Dictionary<string, int> Info { get; set; }
|
||||
}
|
||||
|
||||
class X
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
var x = new A () {
|
||||
Info = {
|
||||
["x"] = 1,
|
||||
["y"] = 2
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -1 +1 @@
|
||||
4a970c00528488693bba23a5f9eda9b860437527
|
||||
08b0ee8ce9da391ffa51e1cc3eb0a3611adf5b5e
|
Reference in New Issue
Block a user