digitalmars.D.bugs - [Issue 19800] New: JSON output does not include scoped imports
- d-bugmail puremagic.com (42/42) Apr 10 2019 https://issues.dlang.org/show_bug.cgi?id=19800
https://issues.dlang.org/show_bug.cgi?id=19800 Issue ID: 19800 Summary: JSON output does not include scoped imports Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: goalitium dissues.mail.kapsi.fi The JSON output generated by -X does not include modules imported within functions: void main() { import std.stdio; writeln("hi"); } Compiled and run with following command: dmd -Xf- -run main.d run.dlang.io link to same snippet of code: https://run.dlang.io/is/C91HBX JSON output: [ { "kind" : "module", "file" : "onlineapp.d", "members" : [ { "name" : "main", "kind" : "function", "line" : 1, "char" : 6, "deco" : "FZv", "endline" : 5, "endchar" : 1 } ] } ] --
Apr 10 2019