Skip to content

Missing error when referencing deleted interface types #60219

Open
@nshahan

Description

@nshahan

Similar to #60209

Types should not be usable after a hot reload that deletes them.

Generation 0:

class A {}

var retained;

void helper() {
  retained = () {
    var a = <A>[];
    print(a.runtimeType);
  };
retained();
}

Generation 1:

var retained;

void helper() {
  retained();  // <-- Should throw an error
}

Unclear what type of error this should be.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dev-compilerweb-hot-reloadIssues related to stateful hot reload on the web

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions