yum-mirror/slang

Making it easier to work with shaders

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

kaizhangNVFeature/initialize list side branch (#6058)9ec6b9168

master
292 B16 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
2
3public struct Visibility
4{
5  internal int x = 1;
6  public int y = 5;
7  // compiler synthesizes:
8  // public __init(int y = 0);
9}
10
11void test()
12{
13    //CHECK: error 39999: too many arguments to call (got 2, expected 1)
14    Visibility t1 = {1, 2};
15}
16