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

Unified Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2359453002: Handle local functions in kernel_impact. (Closed)
Patch Set: Created 4 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: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index 97a9ecbbad5384f7c3bf6102b18d668f334608b2..640a925c93324cd90efe3ee55ed79a838190a543 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -63,6 +63,9 @@ main() {
testDynamicGet(null);
testDynamicSet(null);
testLocalWithInitializer();
+ testLocalFunction();
+ testLocalFunctionInvoke();
+ testLocalFunctionGet();
testInvokeIndex(null);
testInvokeIndexSet(null);
testAssert();
@@ -164,6 +167,17 @@ testDynamicSet(o) => o.foo = 42;
testLocalWithInitializer() {
var l = 42;
}
+testLocalFunction() {
+ localFunction() {}
+}
+testLocalFunctionInvoke() {
+ localFunction() {}
+ localFunction();
+}
+testLocalFunctionGet() {
+ localFunction() {}
+ localFunction;
+}
testInvokeIndex(o) => o[42];
testInvokeIndexSet(o) => o[42] = null;
testAssert() {

Powered by Google App Engine
This is Rietveld 408576698