Closed as not planned
Description
Community build bug found in https://github.com/vladkopanev/cats-saga
Based on Open Community Build #2371
Part of #15647 regressions tracker
Compiler version
All Scala 3 versions
Compiles with Scala 2 (2.13.8)
Minimized code
class Foo{
def bar[T](fn: () => T): T = ???
}
object Test {
val x = new Foo
x bar(() => "hello") // is fine
x bar[String](() => "world") // does not compile
}
Output
[error] ./test.scala:8:8: expression expected but '[' found
[error] x bar[String](() => "hello")
[error]
Expectation
Should compile
Metadata
Metadata
Assignees
Labels
No labels