mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 17:15:02 +00:00
Checked mode throws a TypeError.
Review URL: https://codereview.chromium.org//23868002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27011 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
3fad273e9e
commit
7a36e5d865
|
@ -22,5 +22,6 @@ main() {
|
|||
// used to only see this call and consider the [A.x] field to always
|
||||
// be int.
|
||||
Expect.equals(84, new A(42).x + 42);
|
||||
Expect.throws(() => new B().x + 42, (e) => e is ArgumentError);
|
||||
Expect.throws(() => new B().x + 42,
|
||||
(e) => e is ArgumentError || e is TypeError);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue