www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Type hint annotation in VsCode / code-d / DCD

reply frame <frame86 live.com> writes:
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.
Jun 15
parent WebFreak001 <d.forum webfreak.org> writes:
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.
Jun 15