Deprecate function expressions with names

This commit is contained in:
Denis Zharkov
2015-05-16 19:04:36 +03:00
parent aa1548a83b
commit 2deb7faf05
20 changed files with 49 additions and 41 deletions
@@ -6,10 +6,6 @@ fun autolabel(l: List<Int>) = l.map (fun (i: Int): Int {
return@map 4
})
fun unresolvedMapLabel(l: List<Int>) = l.map (fun test(i: Int): Int {
fun unresolvedMapLabel(l: List<Int>) = l.map (l@ fun(i: Int): Int {
return<!UNRESOLVED_REFERENCE!>@map<!> 4
})
fun labelToFunName(l: List<Int>) = l.map (fun test(i: Int): Int {
return@test 4
})