yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
43dffcde7
master
1//TEST:LANG_SERVER(filecheck=CHECK): 2//COMPLETE:17,21 3struct MyType 4{ 5 // Regression Condition 1: there must be more than one member in the lookup scope. 6 float v; 7 int getSum() { return 0; } 8} 9 10void m(MyType t) 11{ 12 // Regression condition 2: the completion must be in an init expression. 13 // Regression condition 3: none of the candidate members can coerce to the expected type. 14 // Regression behavior: no completion candidates are shown, because 15 // SemanticsVisitor::resolveOverloadedLookup throws an error when there are 0 applicable candidates 16 // after type coercion filtering. 17 Texture2D x = t.; 18} 19 20// CHECK: getSum