test(dart): Add an expected failure test

This commit is contained in:
Robert Brunhage 2023-04-12 07:51:35 +02:00 committed by Stephan Seitz
parent ce3ea7aebe
commit 978fb2b7be
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,13 @@
// Example method that causes an issue with indentation on usage
void someMethod(
void onSuccess(),
void onError(Exception ex, StackTrace stackTrace),
) {
try {} catch (_, __) {}
}
void main() {
someMethod(() {
}, (Exception ex, StackTrace stackTrace) {
});
}