-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:desugarDesugaring happens after parsing but before typing, see desugar.scalaDesugaring happens after parsing but before typing, see desugar.scalahelp wanteditype:bug
Description
object StringContext {
s"Hello"
}
fails to compile with Dotty and Scalac:
-- [E050] Reference Error: tests/allan/Test.scala:49:3 -------------------------
49 | s"Hello"
| ^
| object StringContext does not take parameters
This is because the code snippet desugars to
StringContext("Hello").s()
Is this on purpose? An easy fix would be to desugar to scala.StringContext("Hello").s()
Metadata
Metadata
Assignees
Labels
area:desugarDesugaring happens after parsing but before typing, see desugar.scalaDesugaring happens after parsing but before typing, see desugar.scalahelp wanteditype:bug