Expanded and simplified test for generating bridges in sam conversions.

This commit is contained in:
Evgeny Gerashchenko
2014-10-06 23:50:59 +04:00
parent 72f96cd55c
commit b062548392
6 changed files with 53 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
// KT-5912
class JavaClass<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));
}
}