Fixed type checking recursive problem.
#KT-11995 Fixed
This commit is contained in:
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
|
||||
@@ -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>
|
||||
@@ -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(""))
|
||||
}
|
||||
Reference in New Issue
Block a user