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

Unified Diff: tests/language/super_operator_test.dart

Issue 11273117: Fix issue 6403: do not crash if super indexed load does not exist (return 'no-such-method call' ins… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/super_operator_test.dart
===================================================================
--- tests/language/super_operator_test.dart (revision 14288)
+++ tests/language/super_operator_test.dart (working copy)
@@ -47,6 +47,18 @@
}
+
+class Autobianchi {
+ g() => super[0];
+}
+
+
+testRegression6403() {
+ // Do not crash, throw exception instead
+ new Autobianchi().g();
+}
+
+
main () {
var a = new A();
a = a + "William"; // operator + of class A.
@@ -62,4 +74,5 @@
Expect.equals(43, a.things[4]);
Expect.equals(86, a[4]);
+ Expect.throws(testRegression6403);
}
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698