17 lines
284 B
C#
17 lines
284 B
C#
|
public class Test
|
||
|
{
|
||
|
void Bar ()
|
||
|
{
|
||
|
G<int> g = G<int>.Instance;
|
||
|
}
|
||
|
|
||
|
// When it goes outside, there is no error.
|
||
|
public class G<T>
|
||
|
{
|
||
|
public static G<T> Instance;
|
||
|
}
|
||
|
|
||
|
public static void Main ()
|
||
|
{ }
|
||
|
}
|