Skip to content

Commit

Permalink
Another invalid definition test
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 26, 2019
1 parent 68a48ec commit 815c12a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ function_form(short::Bool) = string(short ? "short" : "long", "-form")

# Invalid or missing arguments
@test_splitdef_invalid :(f{S} = 0)
@test_broken splitdef(:(a::Number::Int -> a); throws=false) === nothing

# Invalid argument block expression
ex = :((x; y; z) -> 0) # Note: inlining this strips LineNumberNodes from the block
Expand Down

0 comments on commit 815c12a

Please sign in to comment.