Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Access from this should be supported #62

@earonesty

Description

@earonesty

Allowing statics and functions of the same name is currently how the babel plugin works. I suspect this is confusing. IE:

This should work.

class Foo {
   static flag = 4
   logFlag() {
       console.log(this.flag)
   }
}

This should be a syntax error:

class Foo {
   static flag = 4
   flag() {
       console.log(Foo.flag)
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions