summaryrefslogtreecommitdiff
path: root/tests/diagnostics/extension-visibility-a.slang
blob: 97e4ef85c1f49ee4fdce8b43b5d4c9a21297f9f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// extension-visibility-a.slang

interface IThing
{
	int getValue();
}

// Note: not implementing the interface here!
struct MyThing
{
	int value;
}

int helper<T : IThing>(T thing)
{
	return thing.getValue();
}