Open NatElkins opened 3 days ago
Here there are 2 issues:
CompletionItem
is not a defined type so even at places where the syntax is valid we get an error. I think you didn't include CompletionItem
type definition for the bug report so we should be able to ignore this problem.
CompletionList<'T when 'T :> CompletionItem>
seems to not a be valid F# like you pointed out. I suppose in F# when can't have the when
rules applied for the return type.
We could more investigation on the supported F# syntax to check if this is the only place where where
is not supported.
This is the function responsible for generating that code:
To fix this issue, we need to look on where it is called and if this is the correct function to call. Depending on the case, we can use another function or add a parameter to say if we want to generate the constraint or not.
Issue created from Glutinum Tool
Glutinum version - 0.11.0-preview
TypeScript
FSharp
Problem description
Glutinum is creating some code that looks like this:
which is invalid.
The snippet of Typescript is from
@types/vscode
. I am trying to create bindings so I can create VS Code extensions using Fable.