Skip to content

Commit 16bd411

Browse files
committed
Kotlin K2 migration: add generic type to emptyList
See KT-66196.
1 parent 7353626 commit 16bd411

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/commonTest/src/contract/list/ImmutableListTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ImmutableListTest {
2525

2626
assertFailsWith<NoSuchElementException> { empty1.iterator().next() }
2727

28-
compareLists(emptyList(), empty1)
28+
compareLists(emptyList<Int>(), empty1)
2929

3030
}
3131

core/commonTest/src/contract/set/ImmutableSetTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ abstract class ImmutableSetTestBase {
239239
assertEquals<Set<Any>>(setOf(), empty1)
240240
assertTrue(empty1 === empty2)
241241

242-
compareSets(emptySet(), empty1)
242+
compareSets(emptySet<Int>(), empty1)
243243
}
244244

245245
@Test fun ofElements() {

0 commit comments

Comments
 (0)