Add test for KT-26064

This commit is contained in:
Alexey Tsvetkov
2018-08-13 02:01:29 +03:00
committed by Anton Bannykh
parent 1a3dd67176
commit 3b4a49eebf
16 changed files with 75 additions and 0 deletions
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/DummyKt.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/dummy.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1 @@
fun dummy() {}
@@ -0,0 +1,2 @@
fun overloaded(x: Int) {}
fun overloaded(s: String) {}
@@ -0,0 +1,3 @@
inline fun overloadedInline() {
overloaded("overloadedInline")
}
@@ -0,0 +1,3 @@
fun useOverloaded() {
overloaded("useOverloadedInline")
}
@@ -0,0 +1,3 @@
fun useOverloadedInline() {
overloadedInline()
}
@@ -0,0 +1,4 @@
class Err constructor(msg: String?, unused: Any?) {
constructor() : this(null, null)
constructor(msg: String) : this(msg, null)
}
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/DummyKt.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/dummy.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,3 @@
inline fun createErr() {
Err("createErr")
}
@@ -0,0 +1 @@
fun dummy() {}
@@ -0,0 +1,3 @@
fun useCreateErr() {
createErr()
}