Add test on compiling against kotlin.stdlib.jdk7/8 on JDK 9

This commit is contained in:
Alexander Udalov
2017-09-08 14:03:47 +03:00
committed by Ilya Gorbunov
parent 2a8be2cdb4
commit 1592555783
4 changed files with 26 additions and 0 deletions
@@ -0,0 +1,15 @@
import java.util.stream.Stream
import kotlin.streams.*
// kotlin-stdlib-jdk7
fun testUse(c: AutoCloseable) = c.use {}
// kotlin-stdlib-jdk8
fun testGet(c: MatchGroupCollection) = c.get("")
fun testGetOrDefault(c: Map<out Number, Any>) = c.getOrDefault(42, "")
fun testRemove(c: MutableMap<out Number, Any>) = c.remove(42, "")
fun testAsSequence(c: Stream<String>) = c.asSequence()
@@ -0,0 +1,5 @@
module usage {
requires kotlin.stdlib;
requires kotlin.stdlib.jdk7;
requires kotlin.stdlib.jdk8;
}