[Issue 3404] New: JSON output should retain original alias names
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 15 02:54:40 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3404
Summary: JSON output should retain original alias names
Product: D
Version: 1.050
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ary at esperanto.org.ar
--- Comment #0 from Ary Borenszweig <ary at esperanto.org.ar> 2009-10-15 02:54:38 PDT ---
For this input:
---
module main;
alias int myInt;
myInt x;
---
The JSON output is:
---
{
"name" : "main",
"kind" : "module",
"file" : "main.d",
"members" : [
{
"name" : "myInt",
"kind" : "alias",
"type" : "int",
"line" : 5}
,{
"name" : "x",
"kind" : "variable",
"type" : "int",
"line" : 7}
]
}
---
But the last one should be:
---
{
"name" : "x",
"kind" : "variable",
"type" : "myInt",
"line" : 7}
---
That is, aliases should not be forgotten. This is especially important for
binding libraries where aliases are heavily used.
--
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