diff --git a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt index 57647a1..f4d51d2 100644 --- a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt +++ b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/ResultIteratorTest.kt @@ -42,7 +42,7 @@ class ResultIteratorTest { val iterator = Err("hello").iterator() assertFailsWith { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") iterator.next() } } diff --git a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt index 7649b8f..cb6e06f 100644 --- a/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt +++ b/kotlin-result/src/commonTest/kotlin/com/github/michaelbull/result/UnwrapTest.kt @@ -17,7 +17,7 @@ class UnwrapTest { @Test fun throwsExceptionIfErr() { assertFailsWith("called Result.unwrap on an Err value 5000") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Err(5000).unwrap() } } @@ -39,7 +39,7 @@ class UnwrapTest { } assertFailsWith("the year should be 1994") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Err(1994).expect { message } } } @@ -49,7 +49,7 @@ class UnwrapTest { @Test fun throwsExceptionIfOk() { assertFailsWith("called Result.unwrapError on an Ok value example") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Ok("example").unwrapError() } } @@ -71,7 +71,7 @@ class UnwrapTest { } assertFailsWith("the year should be 2010") { - @Suppress("IMPLICIT_NOTHING_AS_TYPE_PARAMETER") + @Suppress("IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION") Ok(2010).expectError { message } } }