We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1365e15 commit 970f392Copy full SHA for 970f392
whatif/src/test/java/com/skydoves/whatif/WhatIfUnitTest.kt
@@ -193,8 +193,8 @@ class WhatIfUnitTest {
193
fun whatIfNotNullTypeCastingTest() {
194
var nullableInt: MutableList<Int>? = null
195
196
- nullableInt.whatIfNotNullAs<String>(
197
- whatIf = { nullableInt = arrayListOf(it.length) },
+ nullableInt.whatIfNotNullAs<List<String>>(
+ whatIf = { nullableInt = arrayListOf(it.size) },
198
whatIfNot = { nullableInt = arrayListOf(123) }
199
)
200
0 commit comments