KT-2842 Function with declared non-null receiver resolves with nullable argument receiver

#KT-2842 fixed
This commit is contained in:
Svetlana Isakova
2012-09-29 21:06:24 +04:00
parent 069ef8ef91
commit 9d5f5f7adf
5 changed files with 54 additions and 13 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class StringUtilTest() : TestCase() {
fun testToRegex() {
val re = """foo""".toRegex()
val list = re.split("hellofoobar").filterNotNull()
val list = re.split("hellofoobar").toList()
assertEquals(arrayList("hello", "bar"), list)
}
}