From e31ed56d3356c544f6298b9b994a820eabfbafd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 28 Sep 2017 10:38:13 -0400 Subject: [PATCH] frontend: fix missing location MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/frontend/explain_assert.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/explain_assert.nit b/src/frontend/explain_assert.nit index b2350a4..326f588 100644 --- a/src/frontend/explain_assert.nit +++ b/src/frontend/explain_assert.nit @@ -35,6 +35,7 @@ module explain_assert import astbuilder intrude import literal # for value= intrude import typing # for mtype= +import astvalidation import explain_assert_api @@ -145,7 +146,9 @@ private class ExplainAssertVisitor end # Set the expression value aside + var old_parent = v_expr.parent var expr = v_expr.make_var_read + if old_parent != null then old_parent.validate # Protect nullable types if mtype isa MNullType then -- 1.7.9.5