Index: pkg/analysis_server/tool/spec/codegen_inttest_methods.dart |
diff --git a/pkg/analysis_server/tool/spec/codegen_inttest_methods.dart b/pkg/analysis_server/tool/spec/codegen_inttest_methods.dart |
index 43e85e6a33d843e8636fae3f7aa6f0e26d29fed5..0a3202538f243c86eb8da35744b8966c543f42ad 100644 |
--- a/pkg/analysis_server/tool/spec/codegen_inttest_methods.dart |
+++ b/pkg/analysis_server/tool/spec/codegen_inttest_methods.dart |
@@ -233,6 +233,8 @@ class CodegenInttestMethodsVisitor extends HierarchicalApiVisitor with |
default: |
throw new Exception(type.typeName); |
} |
+ } else if (type is TypeUnion) { |
+ return 'Object'; |
} else { |
throw new Exception('Unexpected kind of TypeDecl'); |
} |