KT-26531 is fixed in NewInference mode
This commit is contained in:
+11
@@ -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()
|
||||
Reference in New Issue
Block a user