Support Crystal <= 0.24.2

This commit is contained in:
Vitalii Elenhaupt 2018-05-09 12:53:01 +03:00
parent 58e6b42ea9
commit fa7f5c5b28
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706

View file

@ -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 # workaround for https://github.com/crystal-lang/crystal/pull/6032
module Crystal module Crystal
class Case < ASTNode class Case < ASTNode