From f31e70d1952ce54b32a6aaaeed71621ca51b831d Mon Sep 17 00:00:00 2001 From: Juan Date: Thu, 2 Mar 2017 19:06:22 +0100 Subject: [PATCH] Fix version dispatch --- src/SugarBLAS.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SugarBLAS.jl b/src/SugarBLAS.jl index 33aab11..755c0dd 100644 --- a/src/SugarBLAS.jl +++ b/src/SugarBLAS.jl @@ -71,7 +71,7 @@ macro call(expr::Expr) end #Version 0.6 downwards -function construct_case_statement(lines::Vector, ::Type{Val{false}}) +function construct_case_statement(lines::Vector, ::Type{Val{true}}) failproof(s) = s failproof(s::Char) = string("'",s,"'") line = lines[1] @@ -87,7 +87,7 @@ function construct_case_statement(lines::Vector, ::Type{Val{false}}) end #Version 0.6 upwards -function construct_case_statement(lines::Vector, ::Type{Val{true}}) +function construct_case_statement(lines::Vector, ::Type{Val{false}}) failproof(s) = s failproof(s::Char) = string("'",s,"'") line = lines[1] @@ -105,7 +105,7 @@ end """ Transforms the custom case expression to a string representing the equivalent if-then-else block of code. """ -construct_case_statement(lines::Vector) = construct_case_statement(lines, Val{VERSION>v"0.6.0"}) +construct_case_statement(lines::Vector) = construct_case_statement(lines, Val{VERSION>=v"0.6.0-dev"}) """