Fixed bug with type projection building + test

Bug could be seen on fake overridden functions calls
This commit is contained in:
Igor Chevdar
2018-01-16 19:41:30 +03:00
parent 77f220f335
commit b2098088ec
3 changed files with 31 additions and 5 deletions
@@ -0,0 +1,21 @@
package codegen.inline.typeSubstitutionInFakeOverride
import kotlin.test.*
abstract class A {
inline fun <reified T : Any> baz(): String {
return T::class.simpleName!!
}
}
class B : A() {
fun bar(): String {
return baz<OK>()
}
}
class OK
@Test fun runTest() {
println(B().bar())
}