Skip to content

Instantly share code, notes, and snippets.

@Zekfad
Created January 5, 2023 18:10
Show Gist options
  • Save Zekfad/f30e144153e7e21f9d61bc97f025846c to your computer and use it in GitHub Desktop.
Save Zekfad/f30e144153e7e21f9d61bc97f025846c to your computer and use it in GitHub Desktop.
dart compiler crash report

dart compiler crash report

Created with <3 with dartpad.dev.

void main(List<String> arguments) {
}
void test(int positional, {int named1 = 0, int named2 = 0}) {}
class Sueta {
static void test(int positional, {int named1 = 0, int named2 = 0}) {}
}
extension SuetaExtension on Sueta {
static void test(int pos, {int named1 = 0, int named2 = 0}) {}
}
void test1() {
test(named1: 0, 1, named2: 0);
}
void test2() {
Sueta.test(named1: 0, 1, named2: 0);
}
/// cannot compile
void test3() {
SuetaExtension.test(named1: 0, 1, named2: 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment