You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sometype = Array{Tuple{R}} where {R}
something(::Type{T}) where {T <:Array{S}} where {S<:Tuple} = S
something(sometype) # gives ERROR: UndefVarError: S not defined
I am not sure if I expected S to be bound to Tuple{R} where {R} or for a MethodError. But either way, I was not expecting S to be ever undefined if it shows up in a where.
versioninfo:
julia>versioninfo()
Julia Version 1.1.0-DEV.318
Commit 993e7d7733 (2018-09-2506:36 UTC)
The text was updated successfully, but these errors were encountered:
Thanks for the explanation. I ran into this when using the Size trait of StaticArrays.jl (e.g. Size(SVector)). Looks like I wouldn't have run into it on the master branch of StaticArrays: JuliaArrays/StaticArrays.jl@bfa5536
This behavior surprised me:
I am not sure if I expected
S
to be bound toTuple{R} where {R}
or for aMethodError
. But either way, I was not expectingS
to be ever undefined if it shows up in awhere
.versioninfo:
The text was updated successfully, but these errors were encountered: