diff --git a/test/parse.jl b/test/parse.jl index f33e55273118e..3c625c192dc8d 100644 --- a/test/parse.jl +++ b/test/parse.jl @@ -662,3 +662,8 @@ end # issue #17701 @test expand(:(i==3 && i+=1)) == Expr(:error, "invalid assignment location \"==(i,3)&&i\"") + +# PR #15592 +let str = "[1] [2]" + @test_throws ParseError parse(str) +end