4b860db14b
A single suite of test files is now shared among these configurations, each with their own expected outputs: - spec mode - strong mode - spec mode w/ type propagation Although some tests are going to focus on a specific configuration, for now it seems easier to maintain a single set of tests. No additional tests have been added in this CL, but the intention is to start adding more tests. The baseline tests no longer contain any checked-in dill files. To simplify dependencies, these tests do not rely on a patched SDK, which means the async transformer cannot currently be tested with this framework. BUG= R=kmillikin@google.com Review URL: https://chromereviews.googleplex.com/507347013 .
33 lines
322 B
Dart
33 lines
322 B
Dart
abstract class Base {}
|
|
|
|
class Foo extends Base {}
|
|
class Bar extends Base {}
|
|
class Baz extends Base {}
|
|
|
|
void foo(x) {
|
|
|
|
}
|
|
|
|
void bar(x) {
|
|
|
|
}
|
|
|
|
void foo_escaped(x) {
|
|
|
|
}
|
|
|
|
void bar_escaped(x) {
|
|
|
|
}
|
|
|
|
void escape(fn) {
|
|
fn(new Baz());
|
|
}
|
|
|
|
main() {
|
|
foo(new Foo());
|
|
bar(new Bar());
|
|
escape(foo_escaped);
|
|
escape(bar_escaped);
|
|
}
|