deprecating types after colon
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@ fun <T> id(t: T) = t
|
||||
|
||||
fun foo() {
|
||||
val i = id { 22 } //type inference error: no information for parameter
|
||||
i checkType { it : _<()->Int> }
|
||||
i checkType { _<()->Int>() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user