9 lines
207 B
Kotlin
Vendored
9 lines
207 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
import java.io.File
|
|
|
|
fun test() {
|
|
val dir = File("dir")
|
|
val files = dir.listFiles()?.toList() ?: listOf() // error
|
|
files checkType { <!UNRESOLVED_REFERENCE!>_<!><List<File>>() }
|
|
} |