Skip to content

NoSymbol when structural call without parens #9436

Closed
@bishabosha

Description

@bishabosha

Minimized code

class Bag extends reflect.Selectable

@main def Test =
  val x = new Bag:
    def f1() = 23

  println(x.f1)

Output

-- [E100] Syntax Error: example.scala:7:12 ------------------------------------
7 |  println(x.f1)
  |          ^^^^
  |           <none> must be called with () argument

Expectation

method f1 must be called with () argument

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