Browse Source

[cs] minor - avoid class not found errors on other platforms

Cauê Waneck 10 years ago
parent
commit
6767c40ac9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/unit/src/unit/issues/Issue4045.hx

+ 3 - 1
tests/unit/src/unit/issues/Issue4045.hx

@@ -1,16 +1,18 @@
 package unit.issues;
 package unit.issues;
 
 
-#if cs
 class Issue4045 extends Test
 class Issue4045 extends Test
 {
 {
+#if cs
 	public function test()
 	public function test()
 	{
 	{
 		var t = new TestS();
 		var t = new TestS();
 		t.a = 10;
 		t.a = 10;
 		eq(10, t.a);
 		eq(10, t.a);
 	}
 	}
+#end
 }
 }
 
 
+#if cs
 private abstract TestS(TestClass)
 private abstract TestS(TestClass)
 {
 {
     inline public function new()
     inline public function new()