Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created December 14, 2017 20:47
Show Gist options
  • Save mraleph/3f2df46ce4c23ce791311cc33ec6734f to your computer and use it in GitHub Desktop.
Save mraleph/3f2df46ce4c23ce791311cc33ec6734f to your computer and use it in GitHub Desktop.
abstract class B {
}
class C extends B {
bool c;
}
abstract class Base<T extends B> {
T get f => null;
}
abstract class Mixin extends Base<B> {
}
class X extends Base<C> with Mixin {
bool get c => f.c;
}
// Fasta reports:
// flu.dart:19:19: Error: The getter 'c' isn't defined for the class '#lib1::B'.
// Try correcting the name to the name of an existing getter, or defining a getter or field named 'c'.
// bool get c => f.c;
// ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment