Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Use <: for type test rather than xxx.name
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTodd13 committed May 1, 2017
1 parent ba08309 commit 2f55e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/domain-ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -605,15 +605,15 @@ function isbitmask(typ::ANY)
end

function isUnitRange(typ::DataType)
is(typ.name, UnitRange.name)
typ <: UnitRange
end

function isUnitRange(typ::ANY)
return false
end

function isStepRange(typ::DataType)
is(typ.name, StepRange.name)
typ <: StepRange
end

function isStepRange(typ::ANY)
Expand Down

0 comments on commit 2f55e26

Please sign in to comment.