Temporary fix for KT-5912

#KT-5912 Fixed
This commit is contained in:
Michael Bogdanov
2014-10-01 18:55:58 +04:00
committed by Evgeny Gerashchenko
parent 6b336be10c
commit 6bcb2e9001
4 changed files with 43 additions and 0 deletions
@@ -0,0 +1,16 @@
public class kt5912<T> {
public static interface Action<T> {
void call(T t);
}
public static class Some<T> {
public Some(T t) {
}
}
public static interface OnSubscribe<T> extends Action<Some<T>> {}
void perform(T t, OnSubscribe<T> subscribe) {
subscribe.call(new Some(t));
}
}
@@ -0,0 +1,5 @@
fun box(): String {
var s = "Failt"
kt5912<String>().perform("") { s = "OK" }
return s
}