Fixed type checking recursive problem.

#KT-11995 Fixed
This commit is contained in:
Stanislav Erokhin
2016-05-19 15:49:40 +03:00
parent 1c8272d3f1
commit c4778bfe5a
9 changed files with 97 additions and 38 deletions
Binary file not shown.
@@ -0,0 +1,11 @@
OUT:
Buildfile: [TestData]/build.xml
build:
[kotlinc] Compiling [[TestData]/test.kt] => [[Temp]/test.jar]
[exec] foo(Int)
BUILD SUCCESSFUL
Total time: [time]
Return code: 0
+12
View File
@@ -0,0 +1,12 @@
<project name="Ant Task Test" default="build">
<taskdef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<target name="build">
<kotlinc src="${test.data}/test.kt" classpath="${test.data}/Kt11995.jar" output="${temp}/test.jar" nowarn="true" />
<exec executable="java">
<arg line="-classpath ${temp}/test.jar foo.TestKt"/>
</exec>
</target>
</project>
+9
View File
@@ -0,0 +1,9 @@
package foo
fun foo(a: Any) = foo(1)
fun foo(i: Int) = "foo(Int)"
fun main(args: Array<String>) {
println(foo(""))
}