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

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

Issue 558953002: Version 1.6.2 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.6/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // Regression test for issue 20840. 5 // Regression test for issue 20840.
6 6
7 class SomeClass { 7 class SomeClass {
8 Object someField; 8 Object someField;
9 9
10 SomeClass() { 10 SomeClass() {
11 [1].forEach((o) => someMethod()); 11 [1].forEach((o) => someMethod());
12 someField = new Object(); 12 someField = new Object();
13 } 13 }
14 14
15 void someMethod() { 15 void someMethod() {
16 if (someField != null) { 16 if (someField != null) {
17 throw "FAIL"; 17 throw "FAIL";
18 } 18 }
19 } 19 }
20 } 20 }
21 21
22 void main() { 22 void main() {
23 new SomeClass(); 23 new SomeClass();
24 } 24 }
25 25
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart ('k') | dart/tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698