When using awaitable::Await() the Verse LSP will incorrectly flag it as an error.
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
Use awaitable::Await()
e.g. Interactable.SucceededEvent.Await()
Expected Result
The Verse LSP doesn’t flag it.
Observed Result
The Verse LSP flag an error.
Invalid access of internal function (/Verse.org/Verse/event:)Await from control scope
Unknown member Await in listenable(agent).
All the top level expressions in a 'race' macro must be async (such as a coroutine call) and not immediate.
Implicit super type conversions involving awaitables are also causing invalid errors:
Event: event() = event(){}
Awaitable()<computes> : awaitable() =
Event # This function returns a value of type awaitable(true), but the function body's result is an incompatible value of type event(tuple()). (3510)