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

Unified Diff: tests/language/regress_23408_test.dart

Issue 1219023002: Redirection type of a redirecting factory can be deferred (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« runtime/vm/parser.cc ('K') | « tests/language/regress_23408_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/regress_23408_test.dart
diff --git a/tests/lib/developer/inspect_test.dart b/tests/language/regress_23408_test.dart
similarity index 51%
copy from tests/lib/developer/inspect_test.dart
copy to tests/language/regress_23408_test.dart
index 9f06215011743783bfcb89694f921e47cc9ca7a7..f1d977f159c7576ecdf7ed624acfd6a6dd0bebc8 100644
--- a/tests/lib/developer/inspect_test.dart
+++ b/tests/language/regress_23408_test.dart
@@ -2,16 +2,22 @@
// 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.
-import 'dart:developer';
+library regress_23408_test;
+
import 'package:expect/expect.dart';
-class Point {
- int x, y;
- Point(this.x, this.y);
+import 'regress_23408_lib.dart' deferred as lib;
+
+class C {
+ var v = 55;
+ C();
+ factory C.c() = lib.C;
regis 2015/06/30 18:16:31 You should add a test where the redirection type i
hausner 2015/06/30 21:51:00 What is the behavior you expect? Using an unresolv
}
void main() {
- var p_in = new Point(3, 4);
- var p_out = inspect(p_in);
- Expect.isTrue(identical(p_in, p_out));
+ Expect.throws(() => new C.c());
+ lib.loadLibrary().then((_) {
+ var z = new C.c();
+ Expect.equals(55, z.v);
+ });
}
« runtime/vm/parser.cc ('K') | « tests/language/regress_23408_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698