diff --git a/pkg/dev_compiler/test/codegen/expect/methods.js b/pkg/dev_compiler/test/codegen/expect/methods.js index 0aabb91973e6..836d8fcd58f5 100644 --- a/pkg/dev_compiler/test/codegen/expect/methods.js +++ b/pkg/dev_compiler/test/codegen/expect/methods.js @@ -28,6 +28,10 @@ dart_library.library('methods', null, /* Imports */[ let b = opts && 'b' in opts ? opts.b : null; return dart.asInt(dart.notNull(a) + dart.notNull(b)); } + ww(a, opts) { + let b = opts && 'b' in opts ? opts.b : 0; + return dart.notNull(a) + dart.notNull(b); + } clashWithObjectProperty(opts) { let constructor = opts && 'constructor' in opts ? opts.constructor : null; return constructor; @@ -54,6 +58,7 @@ dart_library.library('methods', null, /* Imports */[ z: [core.int, [], [core.num]], zz: [core.int, [], [core.int]], w: [core.int, [core.int], {b: core.num}], + ww: [core.int, [core.int], {b: core.int}], clashWithObjectProperty: [dart.dynamic, [], {constructor: dart.dynamic}], clashWithJsReservedName: [dart.dynamic, [], {function: dart.dynamic}] }) diff --git a/pkg/dev_compiler/test/codegen/methods.dart b/pkg/dev_compiler/test/codegen/methods.dart index 662d15bb35c0..e6454d60f14f 100644 --- a/pkg/dev_compiler/test/codegen/methods.dart +++ b/pkg/dev_compiler/test/codegen/methods.dart @@ -19,6 +19,10 @@ class A { return a + b; } + int ww(int a, {int b: 0}) { + return a + b; + } + clashWithObjectProperty({constructor}) => constructor; clashWithJsReservedName({function}) => function;