Expect annotations

67 views
Skip to first unread message

Florian Loitsch

unread,
Mar 4, 2015, 8:54:13 AM3/4/15
to Dart Compiler Developers, dart2js-team
I think I forgot to send a mail to the dart2js-devs...

We have recently added the following annotations to the expect-package (used in tests):
NoInline
AssumeDynamic
TrustTypeAnnotations

Example usage:

    @NoInline()
    @AssumeDynamic()
    confuse(x) => x;

We can now stop using hacks like the "double-return" or "new DateTime.now()", and make our intentions more explicit.
Please update old tests if you see these hacks.

Thanks.
Reply all
Reply to author
Forward
0 new messages