lpython icon indicating copy to clipboard operation
lpython copied to clipboard

fix: check if external symbol before checking from same scope.

Open arteevraina opened this issue 2 years ago • 1 comments

  • [x] Resolves compilation failure for workaround mentioned here https://github.com/lcompilers/lpython/issues/2428#issuecomment-1817343501.
  • [x] When the class is imported from another module as an ExternalSymbol, it should omit the same scope check in ASR Verify.

arteevraina avatar Nov 28 '23 06:11 arteevraina

I thought the ExternalSymbol should still be part of the current symbol table. I will need to investigate this.

Also let's add a test that now works.

certik avatar Nov 28 '23 22:11 certik