12 lines
166 B
C#
Raw Normal View History

// CS0021: Cannot apply indexing with [] to an expression of type `G'
// Line: 8
public class Foo<G>
{
public static void Bar ()
{
int i = default (G)[0];
}
}