Skip to content

Commit 557fe94

Browse files
committed
backport to v1: typeassert Expr constructor return value
Manual backport of PR JuliaLang#592 to JuliaSyntax v1.
1 parent dba9076 commit 557fe94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,6 @@ function to_expr(node)
595595
end
596596

597597
function Base.Expr(node::SyntaxNode)
598-
to_expr(node)
598+
to_expr(node)::Expr
599599
end
600600

0 commit comments

Comments
 (0)