Fixed bug with type projection building + test
Bug could be seen on fake overridden functions calls
This commit is contained in:
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user