[Issue 9706] New: JSON output doesn't contain type of deduced values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 12 11:44:40 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9706

           Summary: JSON output doesn't contain type of deduced values
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: simendsjo at gmail.com


--- Comment #0 from simendsjo <simendsjo at gmail.com> 2013-03-12 11:44:40 PDT ---
Ref.: https://github.com/rejectedsoftware/ddox/issues/11

Tested on dmd 2.062 on linux x64 and x86.

Given the following program:
// t.d
module t;
template explicit() {
    enum bool explicit = false;
}
template implicit() {
    enum implicit = false;
}

void main() {}

Compiled with:
dmd -X -Xft.json t.d

t.json doesn't include "deco" : "b" for implicit:

t.json:
[
 {
  "name" : "t",
  "kind" : "module",
  "file" : "t.d",
  "members" : [
   {
    "kind" : "template",
    "name" : "explicit()",
    "line" : 2,
    "parameters" : [],
    "members" : [
     {
      "name" : "explicit",
      "kind" : "variable",
      "line" : 3,
      "storageClass" : [
       "enum"
      ],
      "deco" : "b",
      "init" : "false"
     }
    ]
   },
   {
    "kind" : "template",
    "name" : "implicit()",
    "line" : 5,
    "parameters" : [],
    "members" : [
     {
      "name" : "implicit",
      "kind" : "variable",
      "line" : 6,
      "storageClass" : [
       "enum"
      ],
      "init" : "false"
     }
    ]
   },
   {
    "name" : "main",
    "kind" : "function",
    "line" : 9,
    "deco" : "FZv",
    "endline" : 9
   }
  ]
 }
]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list