dotnet / dotnet/fsharp

Inconsistent compiler behavior in VS and FSI for open directives

Open
#15,409 1 comment 0 reactions 1 assignee Claimed by @KevinRansom View on GitHub
Area-VS-FSI
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

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

This looks all good:
![image](https://user-images.githubusercontent.com/7281367/74106936-5ed4c980-4b28-11ea-95ca-d1eacc2ed656.png)

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 https://github.com/dotnet/fsharp/issues/8514#issuecomment-583872345_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.