blob: 475ac098af32f44c839d9ea1927e5de81e954347 (
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
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnReferenceType.NoKeptCtorButInterfaceNeeded {
public class LocalPassedAsParameterToGeneric {
public static void Main ()
{
Foo f = null;
Helper<IFoo>(f);
}
[Kept]
static void Helper <T> (T f)
{
}
[Kept]
[KeptInterface (typeof (IFoo))]
class Foo : IFoo {
}
[Kept]
interface IFoo {
}
}
}
|