Skip to content

Commit

Permalink
.primary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Jan 24, 2017
1 parent 9024124 commit 424bcbd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ pool(::Void) = defaultpool()
getdisplay(x; default = nothing) =
getdisplay(x, pool(), default = default)

primarytype(x) = typeof(x).name.primary
if VERSION > v"0.6-"

This comment has been minimized.

Copy link
@tkelman

tkelman Jan 24, 2017

Contributor

be more specific about VERSION cutoffs like this

@eval primarytype(x) = typeof(x).name.wrapper
else
@eval primarytype(x) = typeof(x).name.primary
end

render(x) =
render(getdisplay(primarytype(x)), x)
Expand Down

0 comments on commit 424bcbd

Please sign in to comment.