2782266d5c
Change-Id: Ie7e7131c58186efd5ed4e81e2f010cc240ce8d03 Reviewed-on: https://dart-review.googlesource.com/73341 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Peter von der Ahé <ahe@google.com>
31 lines
741 B
Dart
31 lines
741 B
Dart
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
library test.qualified.main;
|
|
|
|
import "qualified_lib.dart" as lib;
|
|
|
|
part "qualified_part.dart";
|
|
|
|
class Bad extends lib.Missing {
|
|
lib.Missing method() {}
|
|
factory WrongName() {}
|
|
}
|
|
|
|
class WithMixin extends lib.Supertype with lib.Mixin {}
|
|
|
|
class IllegalSupertype extends lib.VoidFunction {}
|
|
|
|
main() {
|
|
new C<String>();
|
|
new C<String>.a();
|
|
new C<String>.b();
|
|
new lib.C<String>();
|
|
new lib.C<String>.a();
|
|
new lib.C<String>.b();
|
|
new WithMixin().supertypeMethod();
|
|
new WithMixin().foo();
|
|
new IllegalSupertype();
|
|
}
|