library; | |
import self as self; | |
import "dart:core" as core; | |
class Foo extends core::Object { | |
constructor •() → void | |
: super core::Object::•() | |
invalid-expression "pkg/front_end/testcases/rasta/bad_redirection.dart:6:11: Error: Can't return from a constructor.\n Foo() = Bar;\n ^"; | |
} | |
class Bar extends self::Foo { | |
static factory •() → self::Bar | |
return null; | |
} | |
static method main() → dynamic { | |
new self::Foo::•(); | |
} |