Skip to content

Commit 413a76b

Browse files
committed
test_JETInterface: return false instead of nothing
1 parent 9af3d8d commit 413a76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_JETInterface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ using JET: get_reports, BasicPass, UndefVarErrorReport
77
# ======================
88

99
struct IgnoreAllPass <: ReportPass end
10-
(::IgnoreAllPass)(::Type{<:InferenceErrorReport}, @nospecialize(_...)) = return
10+
(::IgnoreAllPass)(::Type{<:InferenceErrorReport}, @nospecialize(_...)) = false
1111
let result = @report_call report_pass=IgnoreAllPass() sum("julia")
1212
@test isempty(get_reports(result))
1313
end
1414

1515
struct IgnoreAllExceptGlobalUndefVarPass <: ReportPass end
16-
(::IgnoreAllExceptGlobalUndefVarPass)(::Type{<:InferenceErrorReport}, @nospecialize(_...)) = return
16+
(::IgnoreAllExceptGlobalUndefVarPass)(::Type{<:InferenceErrorReport}, @nospecialize(_...)) = false
1717
(::IgnoreAllExceptGlobalUndefVarPass)(::Type{UndefVarErrorReport}, @nospecialize(args...)) = BasicPass()(UndefVarErrorReport, args...)
1818
let result = report_call(; report_pass=IgnoreAllExceptGlobalUndefVarPass()) do
1919
sum("julia") # should be ignored

0 commit comments

Comments
 (0)