From a07253bab8a3fee82887358aaab031c9c13230ca Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Fri, 3 May 2013 20:12:34 +0900 Subject: [PATCH] "override" and "__export__" should be able to coexist (an example showing that #153 is impossible unless by providing a helper function for the purpose --- t/run/271.export-in-derived.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 t/run/271.export-in-derived.jsx diff --git a/t/run/271.export-in-derived.jsx b/t/run/271.export-in-derived.jsx new file mode 100644 index 00000000..5466bdd5 --- /dev/null +++ b/t/run/271.export-in-derived.jsx @@ -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); + } +}