You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cv[CT.LOCAL_DATE.type] (0)
Ambiguous overload. The overloaded alternatives of method cv in objectPlaygroundwith types
[T<: (Playground.CT.LOCAL_DATE_TIME:Playground.CT)](i: Int):String
[T<: (Playground.CT.LOCAL_DATE:Playground.CT)](i: Int):String
both matchtypearguments [(Playground.CT.LOCAL_DATE:Playground.CT)] and arguments ((0:Int))
cv[CT.LOCAL_DATE_TIME.type] (1)
Ambiguous overload. The overloaded alternatives of method cv in objectPlaygroundwith types
[T<: (Playground.CT.LOCAL_DATE_TIME:Playground.CT)](i: Int):String
[T<: (Playground.CT.LOCAL_DATE:Playground.CT)](i: Int):String
both matchtypearguments [(Playground.CT.LOCAL_DATE_TIME:Playground.CT)] and arguments ((1:Int))
Expectation
I would expect the code above to compile. If I comment out the first "unrelated" function, it does compile. This also occurs for methods.
I have also noticed the following. If I use this as the 1st function instead:
defcv[T](i: Int) =s"cv('$i')"
The error messages also refer to it as a possible ambiguous overload. In this case, I still think it should compile.
The text was updated successfully, but these errors were encountered:
Compiler version
Tried this with 3.2.1-RC2 and 3.2.1-RC1.
Minimized code
Test may be found in scastie
Output
Expectation
I would expect the code above to compile. If I comment out the first "unrelated" function, it does compile. This also occurs for methods.
I have also noticed the following. If I use this as the 1st function instead:
The error messages also refer to it as a possible ambiguous overload. In this case, I still think it should compile.
The text was updated successfully, but these errors were encountered: