Skip to content

No error when assigning to getter-only static class property from another file #1094

Open
@RyanCavanaugh

Description

@RyanCavanaugh

export.ts

export class MyClass {
  static get foo() {
    return 42;
  }
}

import.ts

import { MyClass } from "./export";
MyClass.foo = 0;

Expected: Cannot assign to read-only property (Strada behavior)

Actual: No error

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions