Skip to content

Commit

Permalink
move struct definition outside testset
Browse files Browse the repository at this point in the history
1.0 compatibility
  • Loading branch information
johnnychen94 committed Oct 14, 2020
1 parent 01b3eba commit 2a21ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_dists.jl
@@ -1,7 +1,8 @@
# Unit tests for Distances

struct FooDist <: PreMetric end # Julia 1.0 Compat: struct definition must be put in global scope

@testset "result_type" begin
struct FooDist <: PreMetric end
foodist(a, b) = a + b
for (Ta, Tb) in [
(Int, Int),
Expand Down

0 comments on commit 2a21ba4

Please sign in to comment.