Index: pkg/kernel/lib/verifier.dart |
diff --git a/pkg/kernel/lib/verifier.dart b/pkg/kernel/lib/verifier.dart |
index c923a8d7d8ae63fa57ba91655b87a83eda949e60..8380279ff45c9c77328fa7b458641a2c186081d1 100644 |
--- a/pkg/kernel/lib/verifier.dart |
+++ b/pkg/kernel/lib/verifier.dart |
@@ -337,7 +337,8 @@ class VerifyingVisitor extends RecursiveVisitor { |
!(parent is ForStatement && parent.body != node) && |
!(parent is ForInStatement && parent.body != node) && |
parent is! Let && |
- parent is! LocalInitializer) { |
+ parent is! LocalInitializer && |
+ parent is! Typedef) { |
problem( |
node, |
"VariableDeclaration must be a direct child of a Block, " |