From ca342fd840f9d6290d0f2847b46b7e0906c2bb80 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 6 Jul 2018 14:50:10 +0700 Subject: [PATCH] Fix inverted conditionals for version check Signed-off-by: Rudi Grinberg --- src/super_context.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/super_context.ml b/src/super_context.ml index 71f40794..54dd6420 100644 --- a/src/super_context.ml +++ b/src/super_context.ml @@ -775,7 +775,7 @@ module Action = struct | "project_root" when syntax_version >= (1, 0) -> Some (path_exp (Scope.root scope)) | "@" -> - if syntax_version >= (1, 0) then + if syntax_version < (1, 0) then targets loc var_name else Loc.fail loc (* variable substitution to avoid ugly escaping *)