handle multi-declarations in "show expression type"
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
data class IntStringPair(val x: Int, val s: String)
|
||||
|
||||
fun f(x: IntStringPair) {
|
||||
val (fir<caret>st, second) = x
|
||||
}
|
||||
|
||||
// TYPE: first -> <html>kotlin.Int</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
data class IntStringPair(val x: Int, val s: String)
|
||||
|
||||
fun f(x: List<IntStringPair>) {
|
||||
x.forEach { (fir<caret>st, second) ->
|
||||
}
|
||||
}
|
||||
|
||||
// TYPE: first -> <html>Int</html>
|
||||
// TYPE: { (first, second) -> } -> <html>(IntStringPair) → Unit</html>
|
||||
// TYPE: x.forEach { (first, second) -> } -> <html>Unit</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
data class IntStringPair(val x: Int, val s: String)
|
||||
|
||||
fun f(x: List<IntStringPair>) {
|
||||
for ((fir<caret>st, second) in x) {
|
||||
}
|
||||
}
|
||||
|
||||
// TYPE: first -> <html>Int</html>
|
||||
Reference in New Issue
Block a user