How prevent type inference?

As far as I know it is not possible yet. There are a few internal annotations used for this in the standard library but they are not publicly usable. There is another discussion with the same problem here where Ilya explains this

TL;DR of it: they know that this is useful but have not made it public yet because they are not sure of the design of those annotations.

2 Likes