blob: 2d644e5c324ae847a7590c91bbaa000aeb47e0d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
using System;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Generics
{
public class NewConstraintOnClass
{
public static void Main ()
{
var g1 = new G1<G1Ctor> ();
}
class G1Ctor
{
static readonly int field = 1;
[Kept]
public G1Ctor ()
{
}
public G1Ctor (int a)
{
}
public void Foo ()
{
}
}
[Kept]
[KeptMember (".ctor()")]
class G1<T> where T : G1Ctor, new ()
{
}
}
}
|