Skip to content

Commit

Permalink
"override" and "__export__" should be able to coexist (an example sho…
Browse files Browse the repository at this point in the history
…wing that #153 is impossible unless by providing a helper function for the purpose
  • Loading branch information
kazuho committed May 3, 2013
1 parent c72f082 commit a07253b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions t/run/271.export-in-derived.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*EXPECTED
Derived
*/
class Base {
function say() : void {
log "Base";
}
}
__export__ class Derived extends Base {
override function say() : void {
log "Derived";
}
}
class _Main {
static function doit(b : Base) : void {
b.say();
}
static function main(args : string[]) : void {
_Main.doit(new Derived);
}
}

0 comments on commit a07253b

Please sign in to comment.