-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function is translate to IIFE in a particular case #1234
Comments
The linked code is working with latest REPL (based on Fable 1.3), can you please check again if it works with CLI version? Thanks! |
@alfonsogarciacaro The linked code is not working, the generated code might not easy to read... I can confirm it's the same in dotnet-fable 1.3 with fable-splitter. Here is the example that would cause |
Ah, thanks! I got indeed confused by the code 😅 Interestingly the problem here was the inline local function. If you remove |
@alfonsogarciacaro Thanks for your quick fix! Sorry that I should describe it more clear at first time, this problem makes me a little confused at that time. 🤦♂️ |
No worries, I know sometimes it's difficult to isolate the problem, but it does help a lot to have code without dependencies to reproduce the issue, thank you! 👍 |
Description
A function is translate to IIFE and cause
f is not function error
Repro code
repl
Expected and actual results
Function should alway be a function. :)
Related information
dotnet fable --version
):1.3.0The text was updated successfully, but these errors were encountered: