20 lines
268 B
C#
20 lines
268 B
C#
|
using System;
|
||
|
|
||
|
// Static array initializers test
|
||
|
|
||
|
enum S
|
||
|
{
|
||
|
Foo = 5
|
||
|
}
|
||
|
|
||
|
class C
|
||
|
{
|
||
|
public static int Main ()
|
||
|
{
|
||
|
S[] s = new S [] { S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo, S.Foo };
|
||
|
Console.WriteLine (s [5]);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
}
|