Type hint annotation in VsCode / code-d / DCD

WebFreak001 d.forum at webfreak.org
Tue Jun 15 18:53:19 UTC 2021


On Tuesday, 15 June 2021 at 18:52:25 UTC, frame wrote:
> Is there an annotation type hint for DCD? like
>
> ```d
> // @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.

no the only thing you can do is change auto to the actual type.


More information about the Digitalmars-d-ide mailing list