mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
^KTIJ-23586 Fixed closes https://github.com/JetBrains/intellij-community/pull/2225 GitOrigin-RevId: 112de5fc6fe743239668e693540829665a99c4c8
15 lines
258 B
Kotlin
15 lines
258 B
Kotlin
// PROBLEM: none
|
|
// WITH_STDLIB
|
|
class Test<T>(list: List<T>) : List<T> by list {
|
|
fun print(item: T) {
|
|
println(item)
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
Test(listOf(1, 2, 3)).apply<caret> {
|
|
this.forEach {
|
|
this.print(it)
|
|
}
|
|
}
|
|
} |