12 lines
166 B
C#
12 lines
166 B
C#
|
// 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];
|
||
|
}
|
||
|
}
|
||
|
|