Add '+0' is the shortest conversion among integer-like domains.
Posted: 22 Sep 2014 12:51
The different integer-like subtypes in calling and called procedure result error message.
Code: Select all
domains
sci_style = unsigned8
predicates
deleteStyleByNum:(sci_style Number) determ.
%------------------------------------
predicates
oneDeleteClick : button::clickResponder.
clauses
oneDeleteClick(_Source) = button::defaultAction :-
Num=number_int:getInteger(),
def_style:deleteStyleByNum(Num).
The simplest correction: Add zero to the integer variable in the calling statement.The expression has type '::integer', which is incompatible with the type 'sciLexer_native::sci_style' Reporter.pro Enhanced_Report\
Code: Select all
def_style:deleteStyleByNum(Num+0),