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

20 lines
267 B
C#

//
// This tests the use of an array indexer on value exprclasses
// and not only variables
//
class X {
static int [] g ()
{
int [] x = new int [5];
x [1] = 10;
return x;
}
public static int Main ()
{
if (g () [1] == 10)
return 0;
return 1;
}
}