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

           Summary: Wrong JSON output for templated classes and structs
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bugzi...@kyllingen.net


--- Comment #0 from Lars T. Kyllingstad <bugzi...@kyllingen.net> 2009-11-02 
01:21:50 PST ---
test.d:

  module test;
  struct Foo(T) { T t; }
  class  Bar(T) { T t; }

Compiling this with "dmd -c -X test.d" results in the file test.json containing
the following. Note that the "kind" field for Foo(T) and Bar(T) contains
"struct" and "class" respectively, as opposed to "template". The same problem
does not occur with templated functions.

{
"name" : "test",
"kind" : "module",
"file" : "test.d",
"members" : [
{
"name" : "Foo(T)",
"kind" : "struct",
"line" : 2,
"members" : [
{
"name" : "Foo",
"kind" : "struct",
"line" : 2,
"members" : [
{
"name" : "t",
"kind" : "variable",
"type" : "T",
"line" : 2}
]
}
]
}
,{
"name" : "Bar(T)",
"kind" : "class",
"line" : 3,
"members" : [
{
"name" : "Bar",
"kind" : "class",
"line" : 3,
"members" : [
{
"name" : "t",
"kind" : "variable",
"type" : "T",
"line" : 3}
]
}
]
}
]
}

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

Reply via email to