Runtime fixes on DDC tests

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/2354383003 .
This commit is contained in:
Vijay Menon 2016-09-21 16:12:30 -07:00
parent 160238d0af
commit a22b3b6205
2 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ void test(bool b) {
}
}
create(bool b) {
Map create(bool b) {
return {
b: 0,
m(b): n(b),
@ -40,5 +40,5 @@ create(bool b) {
};
}
m(bool b) => b ? 2 : "bar";
n(bool b) => b ? 3 : "baz";
Object m(bool b) => b ? 2 : "bar";
Object n(bool b) => b ? 3 : "baz";

View file

@ -21,7 +21,7 @@ bar({path}) {
}
main() {
var a = [foo(path: '42'), foo(), 42, bar(path: '54')];
var a = <Object>[foo(path: '42'), foo(), 42, bar(path: '54')];
Expect.isTrue(a[1] is String);
Expect.throws(() => bar().concat('54'), (e) => e is NoSuchMethodError);
}