Erroneous error message
vporton opened this issue · comments
order = (actor(Principal.toText(order.canister)), order.outerKey);
In MS Code, it produces the error
field outerKey does not exist in type
{canister : Principal}
What is a nonsense, because its type is defined as:
order: ?{canister: Principal; outerKey: Nac.OuterSubDBKey}; // TODO: To increase performace, store `OuterCanister` instead.
"Motoko" extension v0.16.0
$ moc --version
Motoko compiler 0.11.0+ (source yh3wb1vx-vj8j4j32-k8gq4m8y-4cxlqinf)
Oh, it is a "meet" of two types, my error not compiler bug.