In Workspace 2 ("Target Program"):
C:/Users/Private/Desktop/testo_runner/_work/JaiCommunityBugTrackerDev/JaiCommunityBugTrackerDev/compiler_bugs/374_360_CEC0.jai:14,9: Error: Procedure call did not match any of the possible overloads.
a := A.{10};
max(1, a); // ok
1 + a; // error
^^^^^
C:/Users/Private/Desktop/testo_runner/_work/JaiCommunityBugTrackerDev/JaiCommunityBugTrackerDev/compiler_bugs/374_360_CEC0.jai:14,9: The call site's argument types are: (s64/literal, A)
Possible overloads:
operator + :: inline (a: S128, b: S128) -> S128 { // This can be the same code for S128 and U128. (C:/jai/modules/Basic/Int128.jai:67)
^^^^^^^^^^^^^^^^^^
Type mismatch. Type wanted: S128; type given: s64.
C:/jai/modules/Basic/Int128.jai:67,22: Info: ... in argument 1.
operator + :: (a: U128, b: U128) -> U128 { (C:/jai/modules/Basic/Int128.jai:745)
^^^^^^^^^^^^^^^^^^
Type mismatch. Type wanted: U128; type given: s64.
C:/jai/modules/Basic/Int128.jai:745,15: Info: ... in argument 1.
operator + :: (a: U128, b: u64) -> U128 { (C:/jai/modules/Basic/Int128.jai:749)
^^^^^^^^^^^^^^^^^
Type mismatch. Type wanted: U128; type given: s64.
C:/jai/modules/Basic/Int128.jai:749,15: Info: ... in argument 1.
Description
Buggy Code
Workarounds
-Latest Test Outputs
windows
Compiler Error Output
linux
Compiler Error Output
History V1