motoko icon indicating copy to clipboard operation
motoko copied to clipboard

Bug: await on async of None type crashes compiler

Open crusso opened this issue 2 years ago • 2 comments

https://forum.dfinity.org/t/type-error-m0139-inner-actor-classes-are-not-supported-yet/18135/19

TBC

import Debug "mo:base/Debug";

shared (deployer) actor class Test() {
  public shared (context) func test(): async () {
    await async {
      Debug.trap("");
    };
  };
};

Crashes in ir checker due to None type

crusso avatar Feb 18 '23 10:02 crusso

Has this been fixed?

crusso avatar Aug 09 '23 11:08 crusso

Has this been fixed?

I doubt it.

ggreif avatar Aug 09 '23 12:08 ggreif