Skip to content

Commit

Permalink
Add optimization test for issue HaxeFoundation#6093
Browse files Browse the repository at this point in the history
  • Loading branch information
basro committed Mar 16, 2017
1 parent 975995c commit c9f1a2a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/optimization/src/issues/Issue6093.hx
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit c9f1a2a

Please sign in to comment.