Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
| index 1a57ccb93d2975cc7688b5ed89bb012874ad8439..aedcc4c1ef0b71e735b1927b6e2459666a379875 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
| @@ -332,8 +332,7 @@ class CompileTimeConstantEvaluator extends Visitor { |
| if (sourceType.treatAsRaw) { |
| keysType = compiler.listClass.rawType; |
| } else { |
| - Link<DartType> arguments = |
| - new Link<DartType>.fromList([sourceType.typeArguments.head]); |
| + List<DartType> arguments = <DartType>[sourceType.typeArguments[0]]; |
|
Johnni Winther
2014/02/26 14:01:54
Why not use 'typeArguments.first' here?
karlklose
2014/02/27 09:31:41
Done.
|
| keysType = new InterfaceType(compiler.listClass, arguments); |
| } |
| ListConstant keysList = new ListConstant(keysType, keys); |
| @@ -343,7 +342,7 @@ class CompileTimeConstantEvaluator extends Visitor { |
| : MapConstant.DART_GENERAL_CLASS; |
| ClassElement classElement = compiler.jsHelperLibrary.find(className); |
| classElement.ensureResolved(compiler); |
| - Link<DartType> typeArgument = sourceType.typeArguments; |
| + List<DartType> typeArgument = sourceType.typeArguments; |
| InterfaceType type; |
| if (sourceType.treatAsRaw) { |
| type = classElement.rawType; |