-
Notifications
You must be signed in to change notification settings - Fork 12
Check ComparedTypesDoNotMatch
github-actions[bot] edited this page Sep 8, 2026
·
2 revisions
_method a.m(param1)
## @param {sw:integer} param1
_if param1 _is _unset
_then
# This condition will never be true, since param1 is defined as sw:integer,
# and can therefore never be sw:unset.
_endif
_endmethod
$
In the above example, we are trying to compare two different types: sw:integer and sw:unset. Given that the type definition of param1 is sw:integer, it can never be sw:unset.
Note
This page is generated. Any changes made to this page through the wiki will be lost in the future.