KT-1478 Quick fix for using nullable collection in "for in" expression

#KT-1478 Fixed
This commit is contained in:
Nikolay Krasko
2015-10-26 22:16:59 +03:00
parent 911432c99c
commit 0fcb51f0a2
11 changed files with 123 additions and 1 deletions
@@ -0,0 +1,4 @@
// "Add non-null asserted (!!) call" "true"
fun <T: Collection<Int>?> foo(c: T) {
for (i in c!!) { }
}