Skip to content

Add type hints for the return type of function or member #14379

@kerams

Description

@kerams

9UvSPbYHTa

Potentially also for lambdas?

7QY3wwU8yM

Sidenote:

match symbol.GetReturnTypeLayout symbolUse.DisplayContext with
| Some typeInfo ->
let colon = TaggedText(TextTag.Text, ": ")
colon :: (typeInfo |> Array.toList)
// not sure when this can happen
| None ->
[]

The None case above is hit when the symbol is a member (currently it does not pass through isValidForHint). The empty hint parts then cause a crash later on with ToImmutableArray.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions