| Index: dart/frog/leg/elements/elements.dart
|
| diff --git a/dart/frog/leg/elements/elements.dart b/dart/frog/leg/elements/elements.dart
|
| index 679a878b0d3275e000a472c701019c68518da02d..a040957d5cce3957361a4c547c3b2947d5bc0519 100644
|
| --- a/dart/frog/leg/elements/elements.dart
|
| +++ b/dart/frog/leg/elements/elements.dart
|
| @@ -327,7 +327,11 @@ Type getType(TypeAnnotation typeAnnotation,
|
| // TODO(karlklose): substitute type parameters.
|
| return element.computeType(compiler);
|
| }
|
| - return compiler.types.lookup(name);
|
| + Type type = compiler.types.lookup(name);
|
| + if (type === null) {
|
| + type = compiler.types.dynamicType;
|
| + }
|
| + return type;
|
| }
|
|
|
| class FunctionParameters {
|
|
|