Skip to content

non-informative error message for a transparent soft keyword with multiple new lines after it #11712

Closed
@unkarjedy

Description

@unkarjedy

Compiler version

3.0.0-RC1

Minimized code

def transparent = println("transparent method called")

transparent
println()
inline def f1 = 1

transparent
inline def f2 = 2

transparent
trait T1

transparent

inline def f3 = 3

transparent

def f4 = 4

transparent

trait T2

Output

Ther actually IS "start of definition" though the error says that there is no

image

Expectation

More informative message? (maybe better parsing? not sure)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcitype:enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions