mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:17:07 +00:00
Runtime fixes on DDC tests
TBR=jmesserly@google.com Review URL: https://codereview.chromium.org/2354383003 .
This commit is contained in:
parent
160238d0af
commit
a22b3b6205
2 changed files with 4 additions and 4 deletions
|
@ -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";
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue