blob: f52f89c40118a3695b1665ffc14fb1d59830206e [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/check_deferred_type_declaration.dart:9:3: Error: The type 'C' is deferred loaded via prefix 'lib' and can't be used as a type annotation.
// - 'C' is from 'pkg/front_end/testcases/deferred_lib.dart'.
// Try removing 'deferred' from the import of 'lib' or use a supertype of 'C' that isn't deferred.
// lib.C x = null;
// ^^^^^
// Unhandled errors:
//
// pkg/front_end/testcases/check_deferred_type_declaration.dart:9:3: Error: The type 'C' is deferred loaded via prefix 'lib' and can't be used as a type annotation.
// - 'C' is from 'pkg/front_end/testcases/deferred_lib.dart'.
// Try removing 'deferred' from the import of 'lib' or use a supertype of 'C' that isn't deferred.
// lib.C x = null;
// ^^^^^
library;
import self as self;
static method main() dynamic
return self::test();
static method test() dynamic {
invalid-type x = null;
}