Open jabraham17 opened 1 month ago
var x: Generic(?); x = new Generic(int); var y /*: Generic*/ = x; // should be Generic(int(64))
Curiously, testInteractive
reports the types of both x
and y
as Generic
(not Generic(int)
), so it's surprising that x
show as Generic(int)
.
typehints@10 Identifier x : var Generic ; refers to typehints@3
typehints@11 Variable y : var Generic ;
So this is likely a bug with accessing a split-initialized variable.
There are a number of type inlay hints that render incorrectly in CLS. I suspect some of these are due to the resolver not being finished and will be resolved in time, but I want to capture them here
Ranges. The correct inlay is more up for debate here, as I think its way too verbose to be useful. Certainly, we should not be printing dyno IDs, but enums are currently always printed this way
Split init with generics
User-defined generic classes. This works properly with records
Missing type inlays for arrays/domains. This is solidly in the "resolver is not done" camp of issues
Iterators