summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-476.cs
blob: d556a900f8d8486bac83d6bc3c04d6b1cbfd4ea6 (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
using System;

// Obsolete attribute cased early inflation of B without IFoo being defined for it

interface IFoo
{
}

class Test<T> : IFoo
{
	public B First ()
	{
		return new B ();
	}
	
	public IFoo Second ()
	{
		return new B ();
	}

	[Obsolete]
	public struct B : IFoo
	{
	}
}

class C
{
	public static void Main ()
	{
	}
}