Created
June 26, 2017 05:13
-
-
Save sh4869/d9596e552f891d81967c73aef4b44b91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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