-
Notifications
You must be signed in to change notification settings - Fork 12
Check AssignedTypeDoesNotMatchSlotType
github-actions[bot] edited this page Nov 7, 2025
·
1 revision
## Example exemplar.
## @slot {sw:rope} slot_1
def_slotted_exemplar(
:example_exemplar,
{
{:slot_1, sw:rope}
})
_method example_exemplar.example_method()
## This assignment will raise an issue, because slot_1 is declared as sw:rope, but we are assigning an sw:integer.
.slot_1 << 12345
_endmethod
$
In the above example, in method
example_exemplar.example_method()
, we are trying to assign an integer value to a slot that is declared as a rope.
Note
This page is generated. Any changes made to this page through the wiki will be lost in the future.