Tests for issues fixed in JVM_IR

This commit is contained in:
Dmitry Petrov
2020-12-21 15:41:21 +03:00
parent 5e5b236ef8
commit 443cd0fc2c
19 changed files with 364 additions and 1 deletions
@@ -0,0 +1,16 @@
// WITH_SIGNATURES
// FILE: t.kt
fun main(x: DataStream<Int>) {
x.keyBy({ it.toLong() })
x.keyBy(KeySelector<Int, Long>{ it.toLong() })
}
// FILE: KeySelector.java
public interface KeySelector<IN, KEY> {
KEY getKey(IN value);
}
// FILE: DataStream.java
public class DataStream<T> {
public <K> void keyBy(KeySelector<T,K> key) {}
}