Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created June 26, 2017 05:13
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 sh4869/d9596e552f891d81967c73aef4b44b91 to your computer and use it in GitHub Desktop.
Save sh4869/d9596e552f891d81967c73aef4b44b91 to your computer and use it in GitHub Desktop.
class Parent {
}
class Child extends Parent {
}
typedef void F(Parent arg);
void _f(Child a){
}
class TestClass {
final F f;
TestClass(this.f);
}
void main(){
var x = new TestClass(_f);
assert(_f is F);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment