Chromium Code Reviews| Index: dart/frog/leg/elements/elements.dart |
| diff --git a/dart/frog/leg/elements/elements.dart b/dart/frog/leg/elements/elements.dart |
| index 0306806b24e4de28b8d060c2cc21694c7fdd49b3..120d41e5bf0b1363d86993a731321f9fe3dfca3f 100644 |
| --- a/dart/frog/leg/elements/elements.dart |
| +++ b/dart/frog/leg/elements/elements.dart |
| @@ -323,7 +323,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); |
|
kasperl
2012/02/15 09:22:30
Would it be cleaner to have a way of querying if t
ahe
2012/02/15 09:46:55
Interesting difference of opinion here: I really p
kasperl
2012/02/15 10:01:29
Yeah, I think it would be neater with something li
ahe
2012/02/15 15:08:42
Actually, this entire method is somewhat broken. I
|
| + if (type === null) { |
| + type = compiler.types.dynamicType; |
| + } |
| + return type; |
| } |
| class FunctionParameters { |