Bug 7572 – f.fn!(void) is not an lvalue

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-24T08:53:00Z
Last change time
2013-04-23T02:19:01Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2012-02-24T08:53:17Z
possibly a dup of bug 2472 take out the comments and this code will fail to compile: alias void Tr; class F{ Tr fn(/*Tr, T ...)(T t*/){ } } void main(){ F f = new F(); void delegate() fx = &f.fn/*!(void)*/; } test.d(8): Error: f.fn!(void) is not an lvalue
Comment #1 by ellery-newcomer — 2012-08-20T17:52:47Z
not a dup. bug 2472 was fixed, this one still isn't. dmd 2.060
Comment #2 by k.hara.pg — 2013-04-08T02:24:29Z
Comment #3 by github-bugzilla — 2013-04-22T23:55:39Z