Skip to content

Missing line break at -Yindent-colons gives off the wrong error #10536

Closed
@soronpo

Description

@soronpo

Minimized code

  def times(num : Int)(block : => Unit) : Unit = ()
  times(10): println("ah")

Output

Term-dependent types are experimental,
they must be enabled with a `experimental.dependent` language import or setting

Expectation

It would be cool if a line break would not be required, but if indeed it does, the error message is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions