Skip to content

Commit d442c3f

Browse files
dpsanderslbenet
authored andcommitted
Fix problem with method redefinitions on nightly (#88)
1 parent 14ef2a2 commit d442c3f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/intervals/rounding.jl

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,24 @@ function setrounding(::Type{Interval}, rounding_type::Symbol)
268268

269269
# check
270270
lines = readlines(path)
271+
272+
# print(lines)
273+
271274
for line in lines
275+
276+
if line == ""
277+
continue
278+
end
279+
272280
if !startswith(line, "WARNING: Method definition")
273-
error(line)
281+
282+
if startswith(line, "WARNING") || startswith(line, "Use")
283+
warn(line)
284+
285+
else
286+
println("Error on line: ", line)
287+
error(line)
288+
end
274289
end
275290
end
276291

@@ -281,6 +296,7 @@ end
281296
rounding(Interval) = current_rounding_type[]
282297

283298

299+
284300
# default: correct rounding
285301
const current_rounding_type = Symbol[:undefined]
286302
setrounding(Interval, :tight)

0 commit comments

Comments
 (0)