0.15.1
-
motoko (
moc)-
bugfix:
persistentimported actor classes incorrectly rejected as non-persistent(#5667). -
Allow matching type fields of modules and objects in patterns (#5056)
This allows importing a type from a module without requiring an indirection or extra binding.// What previously required indirection, ... import Result "mo:core/Result"; type MyResult<Ok> = Result.Result<Ok, Text>; // or rebinding, ... import Result "mo:core/Result"; type Result<Ok, Err> = Result.Result<Ok, Err>; type MyResult<Ok> = Result<Ok, Text>; // can now be written more concisely as: import { type Result } "mo:core/Result"; type MyResult<Ok> = Result<Ok, Text>;
-