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

Side by Side 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, 5 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 unified diff | Download patch
« runtime/vm/parser.cc ('K') | « tests/language/regress_23408_lib.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:developer'; 5 library regress_23408_test;
6
6 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
7 8
8 class Point { 9 import 'regress_23408_lib.dart' deferred as lib;
9 int x, y; 10
10 Point(this.x, this.y); 11 class C {
12 var v = 55;
13 C();
14 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
11 } 15 }
12 16
13 void main() { 17 void main() {
14 var p_in = new Point(3, 4); 18 Expect.throws(() => new C.c());
15 var p_out = inspect(p_in); 19 lib.loadLibrary().then((_) {
16 Expect.isTrue(identical(p_in, p_out)); 20 var z = new C.c();
21 Expect.equals(55, z.v);
22 });
17 } 23 }
OLDNEW
« 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