{"action":"created","issue":{"url":"https://api.github.com/repos/dlang/dmd/issues/7878","repository_url":"https://api.github.com/repos/dlang/dmd","labels_url":"https://api.github.com/repos/dlang/dmd/issues/7878/labels{/name}","comments_url":"https://api.github.com/repos/dlang/dmd/issues/7878/comments","events_url":"https://api.github.com/repos/dlang/dmd/issues/7878/events","html_url":"https://github.com/dlang/dmd/pull/7878","id":296542289,"number":7878,"title":"Interpret imports the same regardless of other modules passed on the command line","user":{"login":"marler8997","id":304904,"avatar_url":"https://avatars1.githubusercontent.com/u/304904?v=4","gravatar_id":"","url":"https://api.github.com/users/marler8997","html_url":"https://github.com/marler8997","followers_url":"https://api.github.com/users/marler8997/followers","following_url":"https://api.github.com/users/marler8997/following{/other_user}","gists_url":"https://api.github.com/users/marler8997/gists{/gist_id}","starred_url":"https://api.github.com/users/marler8997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marler8997/subscriptions","organizations_url":"https://api.github.com/users/marler8997/orgs","repos_url":"https://api.github.com/users/marler8997/repos","events_url":"https://api.github.com/users/marler8997/events{/privacy}","received_events_url":"https://api.github.com/users/marler8997/received_events","type":"User","site_admin":false},"labels":[{"id":537492633,"url":"https://api.github.com/repos/dlang/dmd/labels/Bug%20Fix","name":"Bug Fix","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-12T22:09:32Z","updated_at":"2018-02-13T18:22:46Z","closed_at":"2018-02-13T18:22:46Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/dlang/dmd/pulls/7878","html_url":"https://github.com/dlang/dmd/pull/7878","diff_url":"https://github.com/dlang/dmd/pull/7878.diff","patch_url":"https://github.com/dlang/dmd/pull/7878.patch"},"body":"This PR unifies the behavior of imports regardless of what modules were given on the command line (https://issues.dlang.org/show_bug.cgi?id=15086).  Consider the following:\r\n\r\n```D\r\n// main.d\r\nimport foo;\r\n```\r\n```D\r\n// foo.d\r\nmodule bar;\r\n```\r\n\r\nThe above code will fail if compiled together, i.e.\r\n```\r\ndmd -c main.d foo.d\r\n```\r\n```\r\nError: module `bar` from file foo.d must be imported with 'import bar;'\r\n```\r\n\r\nHowever, if you compile them using 2 invocations, it will succeed:\r\n```\r\ndmd -c main.d\r\ndmd -c foo.d\r\n```\r\n\r\nThis PR unifies both cases by making them both fail with the same error message."},"comment":{"url":"https://api.github.com/repos/dlang/dmd/issues/comments/365357387","html_url":"https://github.com/dlang/dmd/pull/7878#issuecomment-365357387","issue_url":"https://api.github.com/repos/dlang/dmd/issues/7878","id":365357387,"user":{"login":"marler8997","id":304904,"avatar_url":"https://avatars1.githubusercontent.com/u/304904?v=4","gravatar_id":"","url":"https://api.github.com/users/marler8997","html_url":"https://github.com/marler8997","followers_url":"https://api.github.com/users/marler8997/followers","following_url":"https://api.github.com/users/marler8997/following{/other_user}","gists_url":"https://api.github.com/users/marler8997/gists{/gist_id}","starred_url":"https://api.github.com/users/marler8997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marler8997/subscriptions","organizations_url":"https://api.github.com/users/marler8997/orgs","repos_url":"https://api.github.com/users/marler8997/repos","events_url":"https://api.github.com/users/marler8997/events{/privacy}","received_events_url":"https://api.github.com/users/marler8997/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T18:22:46Z","updated_at":"2018-02-13T18:22:46Z","author_association":"CONTRIBUTOR","body":"I've presented what I think to be the best argument.  It appears it wasn't enough.  Closing."}}
{"actor":{"display_login":"marler8997"}}