Skip to content

Instantly share code, notes, and snippets.

@osa1
Created November 19, 2022 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osa1/0ba44d0d8175f8debb3a5c90a9f63526 to your computer and use it in GitHub Desktop.
Save osa1/0ba44d0d8175f8debb3a5c90a9f63526 to your computer and use it in GitHub Desktop.
Strange Dart 3
class A {
void f() {}
}
extension B on A {
void g() {}
}
void main() {
final a = A();
print(a.f == a.f); // true
print(a.g == a.g); // false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment