diff --git a/REQUIRE b/REQUIRE index fe945aca..f966419c 100644 --- a/REQUIRE +++ b/REQUIRE @@ -2,4 +2,4 @@ julia 0.5 ColorTypes 0.3.0 FixedPointNumbers 0.3.0 Reexport -Compat 0.9.1 +Compat 0.17.0 diff --git a/src/colormatch.jl b/src/colormatch.jl index 6af0d951..564cb54d 100644 --- a/src/colormatch.jl +++ b/src/colormatch.jl @@ -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) diff --git a/src/differences.jl b/src/differences.jl index 46eaca1b..3b8ad008 100644 --- a/src/differences.jl +++ b/src/differences.jl @@ -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