mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 19:10:05 +00:00
24e40a0f61
Did not migrate null_bottom / null_is_bottom type tests. Modified null_test to not run some mirrors related checks on platforms that don't support mirrors. Bug: Change-Id: I7fce784f537cc298e2945a32073700083d9275f8 Reviewed-on: https://dart-review.googlesource.com/7848 Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Leaf Petersen <leafp@google.com>
46 lines
803 B
Dart
46 lines
803 B
Dart
// Copyright (c) 2012, 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.
|
|
|
|
foo(a, [b]) {}
|
|
|
|
bar(a, {b}) {}
|
|
|
|
class A {
|
|
A();
|
|
A.test(a, [b]);
|
|
}
|
|
|
|
class B {
|
|
B()
|
|
: super.test(b: 1) // //# 01: compile-time error
|
|
;
|
|
}
|
|
|
|
class C extends A {
|
|
C()
|
|
: super.test(b: 1) // //# 02: compile-time error
|
|
;
|
|
}
|
|
|
|
class D {
|
|
D();
|
|
D.test(a, {b});
|
|
}
|
|
|
|
class E extends D {
|
|
E()
|
|
: super.test(b: 1) // //# 05: compile-time error
|
|
;
|
|
}
|
|
|
|
main() {
|
|
new A.test(b: 1); // //# 00: compile-time error
|
|
new B();
|
|
new C();
|
|
new D.test(b: 1); // //# 03: compile-time error
|
|
new E();
|
|
foo(b: 1); // //# 06: compile-time error
|
|
bar(b: 1); // //# 07: compile-time error
|
|
}
|