library; | |
import self as self; | |
import "strong_lib.dart" as str; | |
import "org-dartlang-testcase:///strong_lib.dart"; | |
static method main() → dynamic { | |
str::foo(); | |
} | |
library /*isLegacy*/; | |
// | |
// Problems in library: | |
// | |
// pkg/front_end/testcases/nnbd/strong_lib_not_ok_from_source/strong_lib.dart:1:1: Error: Library doesn't support null safety. | |
// // @dart = 2.7 | |
// ^^^^^^^^^^^^^^ | |
// | |
import self as str; | |
import "dart:core" as core; | |
static field core::int* x; | |
static method foo() → void { | |
core::print("hello"); | |
} |