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

Unified Diff: dart/tests/compiler/dart2js_extra/inline_position_crash_test.dart

Issue 10970070: Fix bad diagnostic positions when inlining super constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: dart/tests/compiler/dart2js_extra/inline_position_crash_test.dart
diff --git a/dart/tests/language/compile_time_constant7_test.dart b/dart/tests/compiler/dart2js_extra/inline_position_crash_test.dart
similarity index 69%
copy from dart/tests/language/compile_time_constant7_test.dart
copy to dart/tests/compiler/dart2js_extra/inline_position_crash_test.dart
index 25bf20dff843b174a4a75f8bb0cf2acab516149c..d3881aa2017c97d6d4d1493557bdf2dd29391401 100644
--- a/dart/tests/language/compile_time_constant7_test.dart
+++ b/dart/tests/compiler/dart2js_extra/inline_position_crash_test.dart
@@ -2,13 +2,12 @@
// 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.
-class A {
- const A();
- toString() => "a";
-}
+#source('inline_position_crash_source.dart');
-const a = const A();
+class Sub extends Super {
+ Sub() : super();
+}
main() {
- Expect.equals("a", a.toString());
+ new Sub();
}

Powered by Google App Engine
This is Rietveld 408576698