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:
committed by
Space Team
parent
29ecc4d987
commit
f318b5969d
+1
-1
@@ -38,5 +38,5 @@ inline fun foo(n: Int) {}
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:4 $box (14, 4, 17, 4, 14, 9, 14, 4, 17, 4, 4, 14, 9, 14, 4, 17, 4, 4, 14, 9, 14, 4, 17, 4, 4)
|
||||
// test.kt:5 $box (8, 8, 8)
|
||||
// test.kt:5 $box (8, 12, 8, 12, 8, 12)
|
||||
// test.kt:7 $box
|
||||
|
||||
Reference in New Issue
Block a user