tonyhffong / Lint.jl

A lint tool for Julia code
Other
169 stars 33 forks source link

Lint crashes when assigning Union{} as tuple #180

Closed TotalVerb closed 7 years ago

TotalVerb commented 7 years ago
julia> lintstr("""
       x, y = error()
       """)
ERROR: type BottomType has no field parameters
Stacktrace:
 [1] #lintassignment#17(::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Expr, ::Symbol, ::Lint.LintContext) at /home/fengyang/.julia/v0.6/Lint/src/variables.jl:247
 [2] lintexpr(::Expr, ::Lint.LintContext) at /home/fengyang/.julia/v0.6/Lint/src/Lint.jl:205
 [3] lintstr(::String, ::Lint.LintContext, ::Int64) at /home/fengyang/.julia/v0.6/Lint/src/Lint.jl:164
 [4] lintstr(::String) at /home/fengyang/.julia/v0.6/Lint/src/Lint.jl:137