4f586e265e
Change-Id: I85aba2501a7b8a911e122f0a802dfc21b7e87e1e Reviewed-on: https://dart-review.googlesource.com/51620 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
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
|
|
: super lib::Supertype::•()
|
|
;
|
|
}
|
|
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
|
|
: super core::Object::•()
|
|
;
|
|
constructor a() → void
|
|
: super core::Object::•()
|
|
;
|
|
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 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/qualified.dart:11:19: Error: Type 'lib.Missing' not found.
|
|
class Bad extends lib.Missing {
|
|
^"]/* from null */;
|
|
static method main() → dynamic {
|
|
new self::C::•<core::String>();
|
|
new self::C::a<core::String>();
|
|
new lib::C::a<core::String>();
|
|
new lib::C::•<core::String>();
|
|
new lib::C::a<core::String>();
|
|
new lib::C::a<core::String>();
|
|
new self::WithMixin::•().supertypeMethod();
|
|
new self::WithMixin::•().foo();
|
|
}
|