imports: dedup flat decl list by node identity (issue 0056 FIXED)
Impl blocks are anonymous (no declName), so a parameterised-protocol impl in a module reached via a diamond import was appended once per path and registered twice — 'duplicate impl Into for source s64'. mergeFlat and the directory-import merge loop now also dedup by node pointer; a physical AST node is lowered once regardless of how many import paths reach it. Regression: examples/issue-0056-diamond-param-impl.sx.
This commit is contained in:
1
tests/expected/issue-0056-diamond-param-impl.exit
Normal file
1
tests/expected/issue-0056-diamond-param-impl.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/expected/issue-0056-diamond-param-impl.txt
Normal file
1
tests/expected/issue-0056-diamond-param-impl.txt
Normal file
@@ -0,0 +1 @@
|
||||
7
|
||||
Reference in New Issue
Block a user