Closed
Description
Description
When use
ing an IDisposable
at the top-level, the generated code contains a return
statement, which is not valid outside of the context of a function definition.
Repro code
Expected and actual results
The expression should be wrapped in something like an IIFE, as is the case for the js backend.
Related information
- Fable version: 4.19.3
- Operating system: OSX