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

Unified Diff: tests/language/resolution_test.dart

Issue 10559031: Don't try to resolve in the builder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: tests/language/resolution_test.dart
diff --git a/tests/language/resolution_test.dart b/tests/language/resolution_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..90ced2d42b1e9a9b1fa97919df3c8be97c10f3e5
--- /dev/null
+++ b/tests/language/resolution_test.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+int get foo() => 499;
+
+class CompileError {
+ var x;
+
+ // Dart2js tried to resolve factories twice. The second time during building
+ // when it was not allowed to do so.
+ factory CompileError() {
+ return new CompileError.internal(foo);
+ }
+
+ CompileError.internal(this.x);
+}
+
+void main() {
+ Expect.equals(499, new CompileError().x);
+}
« lib/compiler/implementation/ssa/builder.dart ('K') | « lib/compiler/implementation/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698