Skip to content

Commit 5416349

Browse files
fix: make error/value types in RaiseAssert nullable
1 parent 7e3d8bf commit 5416349

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/kotlin/in/rcard/assertj/arrowcore/AbstractRaiseAssert.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import org.assertj.core.internal.StandardComparisonStrategy
2323
*/
2424
abstract class AbstractRaiseAssert<
2525
SELF : AbstractRaiseAssert<SELF, ERROR, VALUE>,
26-
ERROR : Any,
27-
VALUE : Any,
26+
ERROR : Any?,
27+
VALUE : Any?,
2828
> internal constructor(
2929
raiseResult: RaiseResult<ERROR, VALUE>,
3030
) : AbstractAssert<
@@ -155,12 +155,12 @@ abstract class AbstractRaiseAssert<
155155
}
156156
}
157157

158-
sealed interface RaiseResult<out ERROR : Any, out VALUE : Any> {
159-
data class Success<out VALUE : Any>(
158+
sealed interface RaiseResult<out ERROR : Any?, out VALUE : Any?> {
159+
data class Success<out VALUE : Any?>(
160160
val value: VALUE,
161161
) : RaiseResult<Nothing, VALUE>
162162

163-
data class Failure<out ERROR : Any>(
163+
data class Failure<out ERROR : Any?>(
164164
val error: ERROR,
165165
) : RaiseResult<ERROR, Nothing>
166166

0 commit comments

Comments
 (0)