Files
sdk/pkg/front_end/testcases/nnbd/load_library.dart
T
Johnni Winther 4e1954fa08 [cfe] Infer loadLibrary return a non-nullable future
Closes #41122

Change-Id: I1ca82e27cc73900e19369d152cec4f7a7621777b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140400
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-03-23 17:24:43 +00:00

13 lines
365 B
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:math" deferred as math;
main() {
var v1 = math.loadLibrary();
v1.then((_) {});
var v2 = math.loadLibrary;
v2().then((_) {});
}