Skip to content

Commit f6342b1

Browse files
author
Joe Petviashvili
committed
fix Void and Number return types in afgc
1 parent 6ac7e3c commit f6342b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scope.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ end
88

99
global const scopes = Vector{Vector{AFArray}}()
1010

11-
matches{T<:Number}(arr, except::Union{Void,Number,Array{T}}) = false
11+
matches(arr, except::Union{Void,Number}) = false
12+
matches{T<:Number}(arr, except::Array{T}) = false
1213
matches(arr, except::AFArray) = arr === except
1314
matches(arr, except::Tuple) = any(ex -> matches(arr, ex), except)
1415
matches{T}(arr, except::T) = error("@afgc return value can be Void, Number, Array{<:Number}, or Tuple but found $T")

0 commit comments

Comments
 (0)