From c9f1a2a6ab9a861cc5bdbeaa6b55e3c6a92e90a4 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 16 Mar 2017 20:15:37 -0300 Subject: [PATCH] Add optimization test for issue #6093 --- tests/optimization/src/issues/Issue6093.hx | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/optimization/src/issues/Issue6093.hx diff --git a/tests/optimization/src/issues/Issue6093.hx b/tests/optimization/src/issues/Issue6093.hx new file mode 100644 index 00000000000..ca87238d649 --- /dev/null +++ b/tests/optimization/src/issues/Issue6093.hx @@ -0,0 +1,23 @@ +package issues; + +private class A { + public var x : Int = 1; + public inline function new () {}; +} + +private class B extends A { + public var y : Int = 2; + public inline function new () { super(); }; +} + +class Issue6093 { + @:js(' + var a_y; + var a_x; + a_y = 2; + a_x = 1; + ') + static public function main() { + var a = new B(); + } +} \ No newline at end of file