Rehab test dropped by mistake in c9d909ced98dea2aefe20322a59d18fbab2d93b2

This commit is contained in:
Olivier Chafik
2015-12-08 01:57:11 +00:00
parent d33c0cdc3a
commit fc81df2f43
2 changed files with 9 additions and 0 deletions
@@ -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}]
})
@@ -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;