Browse Source

[java] naming conflict

Cauê Waneck 11 years ago
parent
commit
6b3aa97c14
2 changed files with 6 additions and 5 deletions
  1. 2 1
      tests/unit/compile-cs.hxml
  2. 4 4
      tests/unit/issues/Issue2648.hx

+ 2 - 1
tests/unit/compile-cs.hxml

@@ -1,3 +1,4 @@
 compile-each.hxml
 compile-each.hxml
 -main unit.Test
 -main unit.Test
--cs cs
+-cs cs
+-D dump

+ 4 - 4
tests/unit/issues/Issue2648.hx

@@ -2,7 +2,7 @@ package unit.issues;
 import unit.Test;
 import unit.Test;
 
 
 #if java
 #if java
-private class Test<T> {
+private class TestParam<T> {
 	@:overload static public function forName(s:Int) { }
 	@:overload static public function forName(s:Int) { }
 	@:overload static public function forName(s:String) { }
 	@:overload static public function forName(s:String) { }
 }
 }
@@ -11,8 +11,8 @@ private class Test<T> {
 class Issue2648 extends Test {
 class Issue2648 extends Test {
 	#if java
 	#if java
 	function test() {
 	function test() {
-		Test.forName(1);
-		Test.forName("s");
+		TestParam.forName(1);
+		TestParam.forName("s");
 	}
 	}
 	#end
 	#end
-}
+}