Skip to content
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

Disable CheckInlineValueIsComplete for Fable #10

Conversation

alfonsogarciacaro
Copy link

Not entirely sure about this so I'm opening the PR for discussion. It happens that many Fable-compatible libraries include code under FABLE_COMPILER that inline functions accessing internal values in order to resolve generics. This code gives no errors when compiling everything as a single project as Fable normally does, but id does fail when generating a .dll assembly. I've noticed that by disabling the CheckInlineValueIsComplete in Optimizer.fs the error disappears. So I thought we could remove it when compiling FCS for Fable. I chose FABLE_CLI because this is not meant to be compiled to JS.

What do you think @ncave?

@alfonsogarciacaro alfonsogarciacaro changed the base branch from main to service_slim January 11, 2022 13:23
@ncave
Copy link
Owner

ncave commented Jan 11, 2022

@alfonsogarciacaro Sure, whatever works. It's nice that you found a work-around.

@alfonsogarciacaro
Copy link
Author

@ncave Would it be possible to merge this? Unfortunately one of my projects depend on this and I'm afraid the change my be lost when we resync service_slim and use it to update Fable.

@ncave ncave merged commit b252217 into ncave:service_slim Jun 8, 2022
@alfonsogarciacaro
Copy link
Author

Thank you!

@ncave
Copy link
Owner

ncave commented Jun 8, 2022

@alfonsogarciacaro Sure thing, Alfonso, for you - anytime :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants