Thread overview | |||||
---|---|---|---|---|---|
|
January 10, 2011 "Forward declaration" error with auto | ||||
---|---|---|---|---|
| ||||
Referring to functions declared later inside a module with return type auto causes an error, but not when the return type is explicitly declared. The same goes for calling functions in other modules with return type auto. Is this supposed to happen? |
January 10, 2011 Re: "Forward declaration" error with auto | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Eskapp | Sean Eskapp <eatingstaples@gmail.com> wrote: > Referring to functions declared later inside a module with return type auto > causes an error, but not when the return type is explicitly declared. > > The same goes for calling functions in other modules with return type auto. Is > this supposed to happen? Nope. Likely bug #2810[1]. [1]: http://d.puremagic.com/issues/show_bug.cgi?id=2810 -- Simen |
January 10, 2011 Re: "Forward declaration" error with auto | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen kjaeraas | I've repoted this a few days ago: http://d.puremagic.com/issues/show_bug.cgi?id=5433 |
Copyright © 1999-2021 by the D Language Foundation