Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Unified Diff: tests/language/private_super_constructor_test.dart

Issue 1360153005: Normalize constructor lookup. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/private_super_constructor_lib.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/private_super_constructor_test.dart
diff --git a/runtime/observatory/tests/ui/inspector_part.dart b/tests/language/private_super_constructor_test.dart
similarity index 56%
copy from runtime/observatory/tests/ui/inspector_part.dart
copy to tests/language/private_super_constructor_test.dart
index 7d3bcb62e4f208dffcbe734e26d0a25d67f98d3d..a203f4aba665eb7b7ab2ca306dea40062a44c3d7 100644
--- a/runtime/observatory/tests/ui/inspector_part.dart
+++ b/tests/language/private_super_constructor_test.dart
@@ -2,20 +2,12 @@
// 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.
-part of manual_inspector_test;
+library private_super_constructor_test;
-functionInPart() {
+import 'private_super_constructor_lib.dart';
+class C extends B {
+ C() : super._foo(); /// 01: compile-time error
}
-set explicitSetter(x) {}
-
-get explicitGetter {}
-
-
-class D {
- set explicitSetter(x) {}
-
- get explicitGetter {}
-}
-
+main() => new C();
« no previous file with comments | « tests/language/private_super_constructor_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698