Files
kotlin-fork/compiler
Mikhail Zarechenskiy 4ad885afb0 [NI] Correctly propagate base constraint system of invoke call
Consider the following example:

class A {
  operator fun <T> invoke(): Foo<T> = throw Exception()
}

fun foo(f: Foo<Int>) {}

fun test(a: A) {
  foo(a()) // after resolve of `invoke`, it has non-fixed type variable
}
2017-11-13 16:31:04 +03:00
..
2017-09-20 11:51:23 +02:00
2017-11-10 09:46:40 +01:00