Parcourir la source

Actually this test now no longer fails since the type resolution has gained in power. To fallback on an exhibition of the problem again it's enough to just mention the call to floor which is unregistered as long as azslc is concerned.

Signed-off-by: Vivien Oddou <[email protected]>
Vivien Oddou il y a 2 ans
Parent
commit
a02b39983f

+ 3 - 2
tests/Semantic/AsError/overload-resolution-impossible-and-heteroreturn.azsl

@@ -2,12 +2,13 @@ struct A {};
 struct B {};
 
 A make(int);
-B make(uint);
+B make(float);
 
 void main()
 {
     float x = 0.5;
-    A a = make((int)floor(x) + 1);  // #EC 41
+    A a = make(floor(x));  // #EC 41
+    //    make((int)floor(x));  // help azslc knowing about unregistered functions by casting to force the type.
 }
 /*Semantic Error 41: line 10::14 '(10): unable to match arguments (<fail>) to a registered overload. candidates are:
 /make(?int)