Skip to content

Commit c0edbd7

Browse files
committed
Avoid method override warnings.
1 parent 775d9ee commit c0edbd7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/runtests.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,16 @@ no_specialize(@nospecialize(x)) = sin(1)
763763
no_specialize(@nospecialize(x::Integer)) = sin(2)
764764
@test no_specialize(1.0) == sin(1)
765765
@test no_specialize(1) == sin(2)
766-
no_specialize_kw(@nospecialize(x=0)) = sin(1)
767-
no_specialize_kw(@nospecialize(x::Integer=0)) = sin(2)
768-
@test no_specialize_kw(1.0) == sin(1)
769-
@test no_specialize_kw(1) == sin(2)
770-
@test no_specialize_kw() == sin(2)
766+
no_specialize_kw1(@nospecialize(x=0)) = sin(1)
767+
no_specialize_kw1(@nospecialize(x::Integer)) = sin(2)
768+
@test no_specialize_kw1(1.0) == sin(1)
769+
@test no_specialize_kw1(1) == sin(2)
770+
@test no_specialize_kw1() == sin(2)
771+
no_specialize_kw2(@nospecialize(x)) = sin(1)
772+
no_specialize_kw2(@nospecialize(x::Integer=0)) = sin(2)
773+
@test no_specialize_kw2(1.0) == sin(1)
774+
@test no_specialize_kw2(1) == sin(2)
775+
@test no_specialize_kw2() == sin(2)
771776

772777
# 0.7
773778
@test read(IOBuffer("aaaa"), String) == "aaaa"

0 commit comments

Comments
 (0)