FIR: allow lower bound of flexible type when finding contributed invoke

This commit is contained in:
Jinseong Jeon
2020-12-10 14:20:01 -08:00
committed by TeamCityServer
parent 4a24f0fab3
commit 3bca6ae893
6 changed files with 40 additions and 31 deletions
@@ -16,7 +16,7 @@ public interface MyListener<F extends MyFuture<?>> {
typealias Handler = (cause: Throwable?) -> Unit
fun <T> MyFuture<T>.setup() {
addListener(ListenerImpl<T, MyFuture<T>>())
<!INAPPLICABLE_CANDIDATE!>addListener<!>(ListenerImpl<T, MyFuture<T>>())
addListener { }
}
@@ -49,11 +49,11 @@ fun test6(a: Any) {
fun test7(a: (Int) -> Int) {
a as () -> Unit
J().<!INAPPLICABLE_CANDIDATE!>run1<!>(a)
J().run1(a)
}
fun test8(a: () -> Unit) {
J().<!INAPPLICABLE_CANDIDATE!>run1<!>(J.id(a))
J().run1(J.id(a))
}
fun test9() {