blob: ae38d0d98d38504d731008b89a8d4ad98ec7cd0b [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/qualified.dart:13:11: Error: The name of a constructor must match the name of the enclosing class.
// factory WrongName() {}
// ^^^^^^^^^
// pkg/front_end/testcases/qualified.dart:11:7: Error: The name of the enclosing class is 'Bad'.
// class Bad extends lib.Missing {
// ^^^
//
// pkg/front_end/testcases/qualified.dart:12:3: Warning: Type 'lib.Missing' not found.
// lib.Missing method() {}
// ^
//
// pkg/front_end/testcases/qualified.dart:11:19: Error: Type 'lib.Missing' not found.
// class Bad extends lib.Missing {
// ^
//
// pkg/front_end/testcases/qualified.dart:18:7: Error: The type 'lib.VoidFunction' can't be used as supertype.
// class IllegalSupertype extends lib.VoidFunction {}
// ^
library test.qualified.main;
import self as self;
import "dart:core" as core;
import "./qualified_lib.dart" as lib;
class Bad extends core::Object {
method method() invalid-type
;
static factory WrongName() self::Bad
;
}
abstract class _WithMixin&Supertype&Mixin = lib::Supertype with lib::Mixin {
}
class WithMixin extends self::_WithMixin&Supertype&Mixin {
synthetic constructor •() void
;
}
class IllegalSupertype extends core::Object {
synthetic constructor •() void
;
}
class C<T extends core::Object = dynamic> extends core::Object { // from org-dartlang-testcase:///qualified_part.dart
static field dynamic _redirecting# = <dynamic>[self::C::b];
constructor •() void
;
constructor a() void
;
static factory b<T extends core::Object = dynamic>() self::C<self::C::b::T>
let dynamic #redirecting_factory = lib::C::b in let self::C::b::T #typeArg0 = null in invalid-expression;
}
static method main() dynamic
;