summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0133-4.cs
blob: 41fe639b44625a379510271ea3d4a7479e4d4af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0133: The expression being assigned to `S.pathName' must be constant
// Line: 12
// Compiler options: -unsafe

class C
{
    public static int i = 4;
}

public unsafe struct S
{
    private fixed char pathName [C.i];
}