Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 0.6 abstract type declaration depwarn #275

Merged
merged 1 commit into from
Feb 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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