mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
The standard way of loading resources with built-ins metadata from the
current class loader no longer works in the modular mode on Java 9
because the current class loader is for module 'kotlin.reflect', but the
metadata is located in the module 'kotlin.stdlib'. On Java 9, we now use
the class loader of 'kotlin.stdlib' to load these resources.
#KT-21266 Fixed
(cherry picked from commit 828cc6dbf3)
7 lines
254 B
Kotlin
Vendored
7 lines
254 B
Kotlin
Vendored
import kotlin.text.Regex
|
|
|
|
fun f1(): List<String?> = emptyList()
|
|
fun f2(): Array<Lazy<Unit>> = arrayOf()
|
|
fun f3(map: Map<Int, Regex>): Collection<Regex> =
|
|
map.filterNot { (key, entry) -> "$key".equals(entry.toString(), ignoreCase = true) }.values
|