digitalmars.D.bugs - [Issue 3466] New: Wrong JSON output for templated classes and structs
- d-bugmail puremagic.com Nov 02 2009
- d-bugmail puremagic.com Jul 03 2010
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: nobody puremagic.com ReportedBy: bugzilla kyllingen.net --- Comment #0 from Lars T. Kyllingstad <bugzilla 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: -------
Nov 02 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3466 Simen Kjaeraas <simen.kjaras gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simen.kjaras gmail.com Summary|Wrong JSON output for |Wrong JSON output for |templated classes and |templated classes, structs, |structs |and interfaces --- Comment #1 from Simen Kjaeraas <simen.kjaras gmail.com> 2010-07-03 06:29:45 PDT --- This also applies to interfaces. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 03 2010








d-bugmail puremagic.com