Skip to content

Inconsistent compiler behavior in VS and FSI for open directives #15409

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

Open
psfinaki opened this issue Jun 15, 2023 · 1 comment
Open

Inconsistent compiler behavior in VS and FSI for open directives #15409

psfinaki opened this issue Jun 15, 2023 · 1 comment
Assignees
Labels
Area-VS-FSI VS window and commands for F# Interactive
Milestone

Comments

@psfinaki
Copy link
Member

Visual studio sees no error even though it'll fail once sent to FSI.

This looks all good:
image

This is what happens when sent to FSI:

Script7.fsx(1,17): error FS0039: The namespace 'Linq' is not defined.

Originally posted by @kevmal in #8514 (comment)

@psfinaki
Copy link
Member Author

This occurs regardless of the fact if the open statement is before or after the reference directive.

@psfinaki psfinaki added the Area-VS-FSI VS window and commands for F# Interactive label Jun 15, 2023
@KevinRansom KevinRansom self-assigned this Jun 21, 2023
@0101 0101 removed the Needs-Triage label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VS-FSI VS window and commands for F# Interactive
Projects
Status: New
Development

No branches or pull requests

3 participants