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
I could confirm the issue and minimize the example a bit further to
defxa[A, B, X, Y](f: X=> ((A, B) ?=>Y)) =
(z: X) => (a: A, b: B) => f(z)(using a, b)
// will hangdefsuperxa(usingString, Int):Nothing=???// will raise an error// [error] 14 | xa(Function.const(superxa)(_: Int)) // this line causes hang// [error] | ^// [error] |ambiguous implicit arguments: both value evidence$2 and value evidence$1 match type String of parameter x$1 of method superxa indefsuperxa(usingString, Int):Unit=???defmain=
xa(Function.const(superxa)(_: Int)) // this line causes hang
Note that the variant with Nothing as return type diverges, whereas Unit reports the above error.
Uh oh!
There was an error while loading. Please reload this page.
Minimized code
https://scastie.scala-lang.org/G4oNvGFESFa3yyXkn5ICgg
Output
/
timed out after 30 seconds when running code
Expectation
Expected to work
The text was updated successfully, but these errors were encountered: