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:
ngeoffray@google.com 2013-09-02 11:58:05 +00:00
parent 3fad273e9e
commit 7a36e5d865

View file

@ -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);
}