From cff47d4f8eae7bb2e9df63d6053647878ef83e3f Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 26 Sep 2014 09:25:52 +0200 Subject: [PATCH] fix(DartWriter): number (js) maps to num (dart) --- tools/transpiler/src/dart_writer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/transpiler/src/dart_writer.js b/tools/transpiler/src/dart_writer.js index 453f9eb8a9..d16426fa6b 100644 --- a/tools/transpiler/src/dart_writer.js +++ b/tools/transpiler/src/dart_writer.js @@ -91,7 +91,7 @@ export class DartTreeWriter extends JavaScriptParseTreeWriter { normalizeType_(typeName) { if (typeName === 'number') { - return 'int'; + return 'num'; } if (typeName === 'boolean') {