mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
VAL_OR_VAR_ON_LOOP_MULTI_PARAMETER error added KtValVarKeywordOwner interface added for PSIs that have getValOrVarKeyword method
12 lines
222 B
Plaintext
Vendored
12 lines
222 B
Plaintext
Vendored
// "Remove 'val' from parameter" "true"
|
|
class Pair<A, B>
|
|
{
|
|
operator fun component1(): A = null!!
|
|
operator fun component2(): B = null!!
|
|
}
|
|
|
|
fun f(list: List<Pair<String, String>>) {
|
|
for ((x,y) in list) {
|
|
|
|
}
|
|
} |