Skip to content

Commit

Permalink
Mark await as todo instead of not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 6, 2023
1 parent 46eccda commit 496de4f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions valuescript_compiler/src/expression_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 496de4f

Please sign in to comment.