Skip to content

fix: Allow private inline functions to call other private functions and values - #4915

Open
roboz0r wants to merge 2 commits into
fable-compiler:mainfrom
roboz0r:private-inlines
Open

fix: Allow private inline functions to call other private functions and values#4915
roboz0r wants to merge 2 commits into
fable-compiler:mainfrom
roboz0r:private-inlines

Conversation

@roboz0r

@roboz0r roboz0r commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Allows a private inline function to call other private functions and values in the same file.

@MangelMaxime

Copy link
Copy Markdown
Member

Looking at this PR, please don't merge it as it seems like there are holes in the implementations.

@roboz0r

roboz0r commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Happy to take another look at this. I'm not very familiar with the codebase so I was partly trusting Claude to help me find the relevant functions to change, and the tests looked reasonable. Was there a specific gap you noticed or is it a wider structural issue?

Use the predicate the code generators use to decide exports, so values
hidden by a signature file are caught too, and key the expansion-time
check on the inline function the body belongs to instead of on inline
depth, so an escape is no longer reported once per call site on top of
the precompile-time error.
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.

Compile error with Fable >=5.5.0

2 participants