yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Julius IkkalaMinimal optional constraints (#7422)7349dc5cf

master
214 B11 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
2interface IThing
3{
4    void thing();
5}
6
7void f<T>(T t) where optional T: IThing
8{
9    // Unchecked optional constraint is an error.
10    t.thing(); // CHECK: error 30403
11}