Skip to content

Instantly share code, notes, and snippets.

@imaya
Created July 26, 2013 15:09
Show Gist options
  • Save imaya/6089659 to your computer and use it in GitHub Desktop.
Save imaya/6089659 to your computer and use it in GitHub Desktop.
/***
* A JSX application.
*/
class Hoge.<T> {
var a: T;
var b: Map.<string>;
function constructor(a: T, option: Map.<string> = {}) {
this.a = a;
this.b = option;
}
}
class _Main {
static function main(args: string[]) : void {
var hoge = new Hoge.<number>(1);
log hoge;
}
}
// vim: set tabstop=2 shiftwidth=2 expandtab:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment