Skip to content

end new for anonymous classes doesn't work under some conditions #24250

@soronpo

Description

@soronpo

Compiler version

v3.7.3

Minimized code

//> using scala 3.7.4
trait Foo
val foo = 
  new Foo:
    // comment
  end new

val foo2 = 
  new Foo:
  end new

@main def test = {}

Output

misaligned end marker errors

Expectation

No error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions