Never delete types from inline functions during inline transformations

#KT-19399 Fixed
This commit is contained in:
Mikhael Bogdanov
2018-02-15 16:39:08 +01:00
parent 729c866f47
commit d732f0e160
11 changed files with 141 additions and 8 deletions
@@ -0,0 +1,19 @@
fun test() {
{
{}()
}()
}
inline fun ifun(s: () -> Unit) {
s()
}
fun test2() {
var z = 1;
ifun {
{ z = 2 }()
}
}
// 1 class DeleteClassOnTransfromationKt\$test\$1\$1
// 0 class DeleteClassOnTransfromationKt\$test2\$1\$1