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
trait Bar
trait Baz
def f =
identity(
locally:
trait Foo extends Bar, Baz
)
Here, the Scala 3.6.3 compiler reports an error: Not found: Baz
I think this is because it thinks of the comma in the extends clause as a function argument separator for the call to identity. The same problem also affects derives clauses.
The text was updated successfully, but these errors were encountered:
Hey,
Here's some simple code:
https://scastie.scala-lang.org/PEqZTW1YTxOOHk4L2zpzHw
This works fine and defines a trait
Foo
inside thatlocally
block.Here's a slightly different version:
https://scastie.scala-lang.org/Tz39YMm4QG2D5PO9zbTD3w
Here, the Scala 3.6.3 compiler reports an error:
Not found: Baz
I think this is because it thinks of the comma in the extends clause as a function argument separator for the call to
identity
. The same problem also affectsderives
clauses.The text was updated successfully, but these errors were encountered: