OLD | NEW |
1 >>> (indent 6) | 1 >>> (indent 6) |
2 if (!firstArgument.isString) { | 2 if (!firstArgument.isString) { |
3 DartType type = defaultValue.getType(compiler.coreTypes); | 3 DartType type = defaultValue.getType(compiler.coreTypes); |
4 compiler.reportFatalError( | 4 compiler.reportFatalError( |
5 send.arguments.head, | 5 send.arguments.head, |
6 MessageKind.NOT_ASSIGNABLE, | 6 MessageKind.NOT_ASSIGNABLE, |
7 { | 7 { |
8 'fromType': type, | 8 'fromType': type, |
9 'toType': compiler.stringClass.rawType | 9 'toType': compiler.stringClass.rawType |
10 }); | 10 }); |
11 return null; | 11 return null; |
12 } | 12 } |
13 <<< | 13 <<< |
14 if (!firstArgument.isString) { | 14 if (!firstArgument.isString) { |
15 DartType type = defaultValue.getType(compiler.coreTypes); | 15 DartType type = defaultValue.getType(compiler.coreTypes); |
16 compiler.reportFatalError(send.arguments.head, | 16 compiler.reportFatalError(send.arguments.head, |
17 MessageKind.NOT_ASSIGNABLE, | 17 MessageKind.NOT_ASSIGNABLE, { |
18 {'fromType': type, 'toType': compiler.stringClass.rawType}); | 18 'fromType': type, |
| 19 'toType': compiler.stringClass.rawType |
| 20 }); |
19 return null; | 21 return null; |
20 } | 22 } |
OLD | NEW |