Well they list all of the allowed boolean expressi...
# announcements
k
Well they list all of the allowed boolean expressions here under notes (https://github.com/Kotlin/KEEP/blob/3490e847fe51aa6deb869654029a5a514638700e/proposals/kotlin-contracts.md#declaration-syntax):
even though implies takes a Boolean argument, actually only a subset of valid Kotlin expressions is accepted: namely, null-checks (
== null
,
!= null
), instance-checks (
is
,
!is
), logic operators (
&&
,
||
,
!
)