Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

40 lines
534 B
C#

//
// See bug 31834 for details about this bug
//
using System;
class X
{
static int Test (params Foo[] foo)
{
if (foo.Length != 1)
return 1;
if (foo [0] != Foo.A)
return 2;
return 0;
}
enum Foo {
A, B
}
public static int Main ()
{
int v = Test (Foo.A);
if (v != 0)
return v;
MyEnum [] arr = new MyEnum [2];
arr [0] = MyEnum.c;
if (arr [0] != MyEnum.c)
return 3;
return 0;
}
enum MyEnum {a,b,c};
}