Erase non-reified type parameters by-default when inlining.

Substitution of type arguments to non-reified type parameters may lead
to accidental reification, which should not be done (see ^KT-60174 for
examples). So, we should erase them, except the few cases.

^KT-60174: Fixed
^KT-60175: Fixed
This commit is contained in:
vladislav.grechko
2023-07-27 18:30:50 +02:00
committed by Space Team
parent 29ecc4d987
commit f318b5969d
89 changed files with 2369 additions and 280 deletions
+2 -2
View File
@@ -51,9 +51,9 @@ fun test(b: B) {
// test.kt:10 $B.<init>
// test.kt:12 $B.<init>
// test.kt:15 $test (4, 4)
// Standard.kt:3 $test (77, 90)
// Standard.kt:67 $test
// Standard.kt:70 $test (20, 4)
// Standard.kt:3 $test
// Standard.kt:70 $test (20, 11, 20, 4)
// test.kt:11 $B.invoke
// test.kt:18 $test
// test.kt:6 $box