summaryrefslogtreecommitdiffstats
path: root/tests/language-server/typename-enum-intval.slang
blob: 9eca71ae27b6da723498b3076eb367dc6e84d6ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//TEST:LANG_SERVER(filecheck=CHECK):

namespace ns {
enum Test : uint32_t
{
    A = 1,
    B = 2,
}

struct Foo<let T : Test>
{
}
}

void f()
{
//HOVER:18,25
    ns.Foo<ns.Test.A> first;
//HOVER:20,27
    ns.Foo<ns.Test(3)> second;
}

// CHECK: ns.Foo<ns.Test.A>
// CHECK: ns.Foo<ns.Test(3)>