Added tests for obsolete tasks

This commit is contained in:
Svetlana Isakova
2015-06-10 19:32:58 +03:00
parent 690a46bbb4
commit 086e69e132
24 changed files with 326 additions and 0 deletions
@@ -0,0 +1,10 @@
// !CHECK_TYPE
fun <T> bar(f: () -> T) : T = f()
fun test(map: MutableMap<Int, Int>) {
val r = bar {
map[1] = 2
}
r checkType { _<Unit>() }
}