You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto func1() -> void { std::cout << "HI" << "\n"; }
auto func2() -> void { return; }
But it generates the following C++ code:
auto func1() -> void { std::cout << "HI" << "\n"; }
auto func2() -> voidreturn ;
Additional context
The transpiler is combined the return type void and the statement return of func2, becuase it missed block symbols {} in the generated code.