Skip to content

Commit

Permalink
Fix 0.6 abstract type declaration depwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Feb 11, 2017
1 parent a6ed074 commit 8be2f5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ julia 0.5
ColorTypes 0.3.0
FixedPointNumbers 0.3.0
Reexport
Compat 0.9.1
Compat 0.17.0
14 changes: 7 additions & 7 deletions src/colormatch.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

abstract CMF
abstract CIE1931_CMF <: CMF
abstract CIE1964_CMF <: CMF
abstract CIE1931J_CMF <: CMF
abstract CIE1931JV_CMF <: CMF
abstract CIE2006_2_CMF <: CMF
abstract CIE2006_10_CMF <: CMF
@compat abstract type CMF end
@compat abstract type CIE1931_CMF <: CMF end
@compat abstract type CIE1964_CMF <: CMF end
@compat abstract type CIE1931J_CMF <: CMF end
@compat abstract type CIE1931JV_CMF <: CMF end
@compat abstract type CIE2006_2_CMF <: CMF end
@compat abstract type CIE2006_10_CMF <: CMF end

"""
colormatch(wavelength)
Expand Down
2 changes: 1 addition & 1 deletion src/differences.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Define an abstract type to represent color difference metrics
abstract DifferenceMetric
@compat abstract type DifferenceMetric end

# TODO?: make the DifferenMetrics parametric, to preserve type-stability

Expand Down

0 comments on commit 8be2f5c

Please sign in to comment.