Skip to content

Document extension methods make members available without selection #9562

Closed
@bishabosha

Description

@bishabosha

Minimized example

class Foo:
  def foo = 23

object Unrelated:                                                                                                
  extension (f: Foo)
    def bar: Int = foo // ok

Output

compiles ok. In 0.25.x and earlier you would have to explicitly select f.foo.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions