D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3440 - invalid -X JSON output, a comma is missing
Summary: invalid -X JSON output, a comma is missing
Status: RESOLVED DUPLICATE of issue 3415
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-25 20:34 UTC by MIURA Masahiro
Modified: 2015-06-09 01:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description MIURA Masahiro 2009-10-25 20:34:50 UTC
% cat foo.d
module foo;

private {
    int i;
    typedef int[int] MyAA;
}
% dmd -X -c foo.d
% cat -n foo.json
     1  {
     2  "name" : "foo",
     3  "kind" : "module",
     4  "file" : "foo.d",
     5  "members" : [
     6  {
     7  "name" : "i",
     8  "kind" : "variable",
     9  "type" : "int",
    10  "line" : 4}
    11  {
    12  "name" : "MyAA",
    13  "kind" : "typedef",
    14  "type" : "MyAA",
    15  "line" : 5,
    16  "base" : "int[int]"}
    17  ]
    18  }
%

There should be a comma between lines 10 and 11.
Comment 1 Ary Borenszweig 2009-10-26 01:01:09 UTC
Please always search bugs before creating new ones. :-)

*** This issue has been marked as a duplicate of issue 3415 ***