-
Couldn't load subscription status.
- Fork 1.1k
Is it possible to use context function where function is needed? #21670
Unanswered
goshacodes
asked this question in
General Question
-
Hi! I want to pass context function where function is needed
This not compiles with scala 3:
@main def hello = def foo(x: Int)(using String): Int = 0 def pass(x: Int => String => Int): Unit = () pass(foo _)
While this compiles:
@main def hello = def foo(x: Int)(implicit s: String): Int = 0 def pass(x: Int => String => Int): Unit = () pass(foo _)
Is it a bug?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment