summaryrefslogtreecommitdiffstats
path: root/tests/parser/generic-arg.slang
blob: 6917ad4dba2f16d4a1aecd9a5eb83c86156438e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// generic-arg.slang

//DIAGNOSTIC_TEST:SIMPLE:

// Test disambiguation of expression and generic app.

namespace NS
{
    struct MyType<let u : int, let v : int>
    {
        int arr[u /(v+1-1)];
    }
}

StructuredBuffer<NS.MyType<1, 3>> buffer;