Skip to content

loadLibrary() return type #41122

Closed
Closed
@scheglov

Description

@scheglov

What is the return type of deferredPrefix.loadLibrary() when NNBD?
Currently in analyzer it is Future<dynamic>.
But this does not match CFE.
@leafpetersen @lrhn Could you clarify this?

import self as self;
import "dart:async" as asy;
import "dart:core" as core;

import "dart:math" deferred as math;

static method main() → dynamic {
  asy::Future<dynamic>? v = LoadLibrary(math);
  core::print(v);
}

Metadata

Metadata

Assignees

Labels

NNBDIssues related to NNBD Releaselegacy-area-front-endLegacy: Use area-dart-model instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions