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

Side by Side Diff: tests/language/inferrer_constructor4_test.dart

Issue 61163005: Fix a bug in the type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
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.
4
5 import "package:expect/expect.dart";
6
7 escape(object) {
8 print(object.field + 42);
9 }
10
11 class A {
12 A() {
13 escape(this);
14 }
15 }
16
17 class B extends A {
18 var field;
19 B() {
20 field = 42;
21 }
22 }
23
24 main() {
25 Expect.throws(() => new B(), (e) => e is NoSuchMethodError);
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698