www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9380] New: deprecated statement string expression is too limited

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

           Summary: deprecated statement string expression is too limited
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-01-23
17:14:03 PST ---
string getStr() { return "foobar"; }

deprecated("foo" ~ "bar")
void f1() { }

deprecated(getStr())
void f2() { }

void main()
{
}

test.d(3): Error: string expected, not '"foo" ~ "bar"'
test.d(6): Error: string expected, not 'getStr()'

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