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
-- [E172] Type Error: cfun-capturerefs.scala:3:32 ------------------------------
3 |def foo(x: Async ?=> Unit): C^{x} = C(x)
| ^
|No given instance of type Async was found for parameter of (Async) ?=> Unit
|Where (Async) ?=> Unit is an alias of: (Async) ?=> Unit
-- Error: cfun-capturerefs.scala:4:44 ------------------------------------------
4 |def foo(x: Async ?=> Unit)(using Async): C^{x} = C(x)
| ^
| x.apply(x$2): Unit is not a legal element of a capture set
Expectation
Should compile
The text was updated successfully, but these errors were encountered:
Compiler version
3.5-RC1
Minimized example
Output
Expectation
Should compile
The text was updated successfully, but these errors were encountered: