Migrate boxInline tests to new multi-file framework
This commit is contained in:
committed by
Alexander Udalov
parent
fa1f7d988e
commit
cc84aabdcf
@@ -0,0 +1,35 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
package zzz
|
||||
|
||||
public class A(val a: Int, val b: Int)
|
||||
|
||||
operator inline fun A.component1() = a
|
||||
|
||||
operator inline fun A.component2() = b
|
||||
|
||||
//SMAP ABSENT
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import zzz.*
|
||||
|
||||
fun box(): String {
|
||||
var (p, l) = A(1, 11)
|
||||
|
||||
return if (p == 1 && l == 11) "OK" else "fail: $p"
|
||||
}
|
||||
|
||||
//SMAP
|
||||
//inlineComponent.1.kt
|
||||
//Kotlin
|
||||
//*S Kotlin
|
||||
//*F
|
||||
//+ 1 inlineComponent.1.kt
|
||||
//InlineComponent_1Kt
|
||||
//+ 2 inlineComponent.2.kt
|
||||
//zzz/InlineComponent_2Kt
|
||||
//*L
|
||||
//1#1,21:1
|
||||
//5#2,3:22
|
||||
//*E
|
||||
Reference in New Issue
Block a user