Use module path instead of class path for stdlib on Java 9
Also report the "named does not read unnamed" error, which was not possible previously because we wouldn't be able to read anything from kotlin-stdlib (because it was added to the unnamed module by default)
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
module namedWithExplicitDependency {
|
||||
requires kotlin.stdlib;
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
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
|
||||
Reference in New Issue
Block a user