Skip to content

Instantly share code, notes, and snippets.

@kazuho
Created March 14, 2014 04:37
Show Gist options
  • Save kazuho/9542216 to your computer and use it in GitHub Desktop.
Save kazuho/9542216 to your computer and use it in GitHub Desktop.
class Foo.<T> {
static function callIt(f : () -> T) : void {
f();
}
}
class _Main {
static function main(args : string[]) : void {
Foo.<void>.callIt(function () {});
}
}
@kazuho
Copy link
Author

kazuho commented Mar 14, 2014

[tmp/void-as-template-arg.jsx:9:13] 'void' cannot be used here
Foo..callIt(function () {});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment