blob: fefc2ed047e1fbc8cbdc98dd86c51789d82ef965 [file] [log] [blame]
// @dart = 2.6
class Foo {
method(x, [y, z]) {}
}
abstract class External {
String externalMethod(int x, [int y, int z]);
void listen(Listener listener);
}
external External createExternal();
abstract class Listener {
void event(String input, [int x, int y]);
}
class TestListener extends Listener {
void event(input, [x, y]) {}
}
class ExtendedListener extends Listener {
void event(input, [x, y, z]) {}
}
class InvalidListener {
void event(input, [x]) {}
}
main() {}