Repository navigation
-
motoko (
moc)-
bugfix: Candid subtype checks on shared function and actor references
now handle records correctly. A missingoptfield that sorts before the
remaining fields no longer causes a spurious "incompatible function type"
trap, and records with differently named fields are no longer wrongly
accepted (#6498). -
bugfix:
Prim.shiftRightby 2^31 or more returns 0 instead of a wrong
value, andPrim.shiftLeftof a nonzero value traps with "left shift
result too large" when the result would have 2^31 or more bits, instead
of returning a wrong value. The interpreter agrees and no longer hangs
on large shift amounts (#6423). -
perf: a
switchon a tuple, such asswitch (a, b)or
switch (f()), no longer allocates the tuple on the heap when every case
is a tuple pattern (or a wildcard). Neither does a projection from a
tuple-returning call likef().0(#6486). -
bugfix: a canister with more than about 20,000 constant values (for example,
that many distinct text literals), or with an array literal of more than
about 18,500 constant elements, now installs instead of failing with
IC0505(function complexity exceeds the maximum allowed) (#6490).
-