Skip to content

Within class.together subclasses cannot access parent fields and methods without this #793

Description

@samdphillips

Outside of class.togther the B class can access the parent's attributes without this in the foo method.

class.together:
  class A(s :~ String):
    nonfinal

    property t: "this is t"

    method u():
      "uuuu"

  class B():
    extends A

    method foo():
      // s
      // t
      u()

/*
  u: unbound identifier
    in: u
*/ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions