Skip to content

Bad constructor in FutureImpl #2029

@peter-ahe-google

Description

@peter-ahe-google

This is from dart/corelib/src/implementation/future_implementation.dart:

  FutureImpl.immediate(T value) : this() {
    _setValue(value);
  }

This is illegal according to the specification:

"Redirecting Constructors A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor. A redi- recting constructor has no body; instead, it has a redirect clause that specifies which constructor the invocation is redirected to, and with what arguments."

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions