Skip to content

Commit 64b9b99

Browse files
committed
Fixed HelloWorld test not generating Base & Child
1 parent af88dc3 commit 64b9b99

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

test/tests/HelloWorld/Main.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Base {
55
public function func2() {}
66
}
77

8+
@:keep
89
class Child extends Base {
910
public override function func() {}
1011
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
namespace haxe.root {
2-
class Base {
3-
public virtual void func() {
2+
class Base {
3+
public virtual void func() {
44

5-
}
5+
}
6+
public void func2() {
67

7-
public void func2() {
8+
}
89

9-
}
10-
}
11-
}
10+
}
11+
}
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
namespace haxe.root {
2-
class Child: Base {
3-
public override void func() {
2+
class Child {
3+
public override void func() {
44

5-
}
6-
}
7-
}
5+
}
6+
7+
}
8+
}

test/tests/HelloWorld/intended/_GeneratedFiles.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"filesGenerated": [
33
"Main.cs",
4+
"Main_Child.cs",
5+
"Main_Base.cs",
46
"build.csproj",
57
"HaxeBoot.cs"
68
],

0 commit comments

Comments
 (0)