File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 876876
877877function check_const (x:: EXPR )
878878 if headof (x) === :const
879- if CSTParser. isassignment (x. args[1 ]) && CSTParser. isdeclaration (x. args[1 ]. args[1 ])
879+ if VERSION < v " 1.8.0-DEV.1500 " && CSTParser. isassignment (x. args[1 ]) && CSTParser. isdeclaration (x. args[1 ]. args[1 ])
880880 seterror! (x, TypeDeclOnGlobalVariable)
881881 elseif headof (x. args[1 ]) === :local
882882 seterror! (x, UnsupportedConstLocalVariable)
Original file line number Diff line number Diff line change @@ -1324,7 +1324,7 @@ f(arg) = arg
13241324 let
13251325 cst = parse_and_pass (""" const x::T = x
13261326 local const x = 1""" )
1327- @test errorof (cst. args[1 ]) === StaticLint. TypeDeclOnGlobalVariable
1327+ @test errorof (cst. args[1 ]) === ( VERSION < v " 1.8.0-DEV.1500 " ? StaticLint. TypeDeclOnGlobalVariable : nothing )
13281328 @test errorof (cst. args[2 ]) === StaticLint. UnsupportedConstLocalVariable
13291329 end
13301330 end
You can’t perform that action at this time.
0 commit comments