package regressions import junit.framework.TestCase import java.util.List class Kt1619Test: TestCase() { fun doSomething(list: List): Boolean { return list.size() > 0 } fun testCollectionNotNullCanBeUsedForNullables() { val list: List = arrayList("foo", "bar") // TODO uncomment this line to reproduce KT-1619 // doSomething(list) } }