Skip to content

Commit

Permalink
Merge pull request #422 from dart-lang/fix-dropped-test
Browse files Browse the repository at this point in the history
Rehab test dropped by mistake
  • Loading branch information
John Messerly committed Jan 22, 2016
2 parents d33c0cd + fc81df2 commit 8314de7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/dev_compiler/test/codegen/expect/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}]
})
Expand Down
4 changes: 4 additions & 0 deletions pkg/dev_compiler/test/codegen/methods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8314de7

Please sign in to comment.