Fixed bug with type projection building + test
Bug could be seen on fake overridden functions calls
This commit is contained in:
@@ -2086,6 +2086,11 @@ task inline26(type: RunKonanTest) {
|
||||
source = "codegen/inline/inline26.kt"
|
||||
}
|
||||
|
||||
task inline_type_substitution_in_fake_override(type: RunKonanTest) {
|
||||
goldValue = "OK\n"
|
||||
source = "codegen/inline/typeSubstitutionInFakeOverride.kt"
|
||||
}
|
||||
|
||||
task deserialized_inline0(type: RunKonanTest) {
|
||||
source = "serialization/deserialized_inline0.kt"
|
||||
}
|
||||
|
||||
@@ -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