blob: f7d378ac55e4d52ced175f6fe44fc13eb8776bb9 [file] [log] [blame]
main = main::main;
library from "package:bar/bar.dart" as bar {
//
// Problems in library:
//
// org-dartlang-test:///bar/lib/bar.dart:1:1: Error: The specified language version is too low. The lowest supported language version is 2.12.
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// int y = null;
// ^
//
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
}
library from "package:baz/main.dart" as main {
import "package:foo/foo.dart" as foo;
import "package:bar/bar.dart" as bar;
static method main() dynamic {
dart.core::print(foo::x);
dart.core::print(bar::y);
dart.core::print("done");
}
}
library from "package:foo/foo.dart" as foo {
//
// Problems in library:
//
// org-dartlang-test:///foo/lib/foo.dart:1:1: Error: The specified language version is too low. The lowest supported language version is 2.12.
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///foo/lib/foo.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// int x = null;
// ^
//
static field dart.core::int x = invalid-expression "org-dartlang-test:///foo/lib/foo.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint x = null;\n ^" in let Null #t2 = null in #t2 == null ?{dart.core::int} #t2 as{TypeError} dart.core::int : #t2{dart.core::int};
}