Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing reference for const in included file #399

Open
DatName opened this issue Feb 8, 2025 · 0 comments
Open

Missing reference for const in included file #399

DatName opened this issue Feb 8, 2025 · 0 comments

Comments

@DatName
Copy link

DatName commented Feb 8, 2025

Example:

module TestLinter

export CONST

const CONST = 1

module SubModuleTopLevel
    using ..TestLinter
    const MY_CONST = CONST + 1 # everything is fine
end

include("nested/sub_module.jl")

end

where nested/sub_module.jl is

module SubModuleMidLevel
    using ..TestLinter
    const MY_CONST = CONST + 1 # ! missing reference CONST here
end

Image

I also noticed, that there are some other recently opened issues related to const :

  1. False positive: Adding new constructors to aliases of parameterized types #394
  2. Julia VSCode extension crash upon unpacking an alias #398
  3. Wrong "Cannot define function ; it already has a value." #325

Dont know if they are caused by the same bug or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant