Преглед на файлове

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 преди 2 години
родител
ревизия
a02b39983f
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      tests/Semantic/AsError/overload-resolution-impossible-and-heteroreturn.azsl

+ 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)