KT-26531 is fixed in NewInference mode

This commit is contained in:
Dmitry Petrov
2018-09-10 14:09:53 +03:00
parent 8e9945bc9e
commit b8eb804774
3 changed files with 58 additions and 0 deletions
@@ -0,0 +1,11 @@
// !LANGUAGE: +NewInference
val <T : CharSequence> T.gk: () -> T
get() = { -> this }
fun testGeneric1(x: String) = x.gk()
val <T> T.kt26531Val: () -> T
get() = fun () = this
fun kt26531() = 7.kt26531Val()