Skip to content

Incorrect handling of end <id> #12340

Closed
Closed
@Glavo

Description

@Glavo

Compiler version

scala-3.0.1-RC1 (83acd4b)

Minimized code

This code shouldn't have been compiled, but it did:

class C {
}
end C

And automatic rewriting (-rewrite -no-indent) does not delete the end. For this code:

class C:
  val foo: Int = 0
end C

After compiling with scalac -rewrite -no-indent:

class C {
  val foo: Int = 0
}
end C

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions