Browse Source

must type hint toString() to pass on static targets

kaikoga 9 years ago
parent
commit
9ac7d74939
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/unit/src/unit/issues/Issue4962.hx

+ 1 - 1
tests/unit/src/unit/issues/Issue4962.hx

@@ -2,7 +2,7 @@ package unit.issues;
 
 private class C {
 	public function new() { }
-	@:keep function toString() return toString();
+	@:keep function toString():String return toString();
 }
 
 class Issue4962 extends Test {