June 15

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

On Tuesday, 15 June 2021 at 18:52:25 UTC, frame wrote:

>

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.

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