Mark await as todo instead of not supported

This commit is contained in:
Andrew Morris
2023-07-06 22:02:32 +10:00
parent 46eccda083
commit 496de4fff2

View File

@@ -173,12 +173,7 @@ impl<'a> ExpressionCompiler<'a> {
return CompiledExpression::empty();
}
Await(await_exp) => {
self.fnc.diagnostics.push(Diagnostic {
level: DiagnosticLevel::Error,
message: "Await expression is not supported".to_string(),
span: await_exp.span,
});
self.fnc.todo(await_exp.span, "Await expression");
return CompiledExpression::empty();
}
Paren(p) => {