yum-mirror/slang

Making it easier to work with shaders

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

Jay KwakFix intermittent debug failures with Debug build (#7369)7dad68f86

master
495 B33 linesraw
1//TEST(smoke):LANG_SERVER:
2//COMPLETE:31,21
3//HOVER:25,30
4//SIGNATURE:25,40
5interface IFoo
6{
7    /**
8    Returns the sum of the contents.
9    */
10    int getSum();
11}
12
13struct MyType : IFoo
14{
15    int getSum() { return 0; }
16}
17
18struct Pair<T:IFoo, U: IFoo> : IFoo
19{
20    T first;
21    U second;
22    /**
23    Returns the sum of the contents.
24    */
25    int getSum() { return first.getSum() + second.getSum(); }
26}
27
28void m()
29{
30    Pair<MyType, Pair<MyType, MyType>> v;
31    v.first = v.second.first;
32    
33}