Is there an annotation type hint for DCD? like
// @type(S!T)
auto foo = fun();
Code-completion does a good job if fun() is called in a chain directly but the type information is lost at variable foo.
June 15, 2021 Type hint annotation in VsCode / code-d / DCD | ||||
---|---|---|---|---|
| ||||
Is there an annotation type hint for DCD? like
Code-completion does a good job if fun() is called in a chain directly but the type information is lost at variable foo. |
June 15, 2021 Re: Type hint annotation in VsCode / code-d / DCD | ||||
---|---|---|---|---|
| ||||
Posted in reply to frame | On Tuesday, 15 June 2021 at 18:52:25 UTC, frame wrote: >Is there an annotation type hint for DCD? like
Code-completion does a good job if fun() is called in a chain directly but the type information is lost at variable foo. no the only thing you can do is change auto to the actual type. |