Skip to content

Add test exercising compilations of same filenames, different directories#28974

Open
bradcray wants to merge 1 commit into
chapel-lang:mainfrom
bradcray:test-matching-filenames
Open

Add test exercising compilations of same filenames, different directories#28974
bradcray wants to merge 1 commit into
chapel-lang:mainfrom
bradcray:test-matching-filenames

Conversation

@bradcray

Copy link
Copy Markdown
Member

In a discussion last week, we were musing about how well or poorly the compiler supports multiple files with the same name as long as they don't define duplicate module names (or even if they do). That caused me to write up these tests, which mostly worked as I'd expected. One is not surprising, but seems like an opportunity for improvement, so I've added that as a future as well. It shows that if we need to use a module that we haven't parsed yet, we default to an already-parsed file that doesn't define that module rather than a new one that may.

…ries

In a discussion last week, we were musing about how well or poorly the
compiler supports multiple files with the same name as long as they
don't define duplicate module names (or even if they do).  That caused
me to write up these tests, which mostly worked as I'd expected.  One
is not surprising, but seems like an opportunity for improvement, so
I've added that as a future as well.  It shows that if we need to use
a module that we haven't parsed yet, we default to an already-parsed
file that doesn't define that module rather than a new one that may.

---
Signed-off-by: Brad Chamberlain <bradcray@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant