diff --git a/src/ameba/support/ast.cr b/src/ameba/support/ast.cr index 1b7f5d87..01bcd607 100644 --- a/src/ameba/support/ast.cr +++ b/src/ameba/support/ast.cr @@ -1,4 +1,4 @@ -{% if Crystal::VERSION == "0.24.2" %} +{% if compare_versions(Crystal::VERSION, "0.24.2") <= 0 %} # workaround for https://github.com/crystal-lang/crystal/pull/6032 module Crystal class Case < ASTNode