-
Notifications
You must be signed in to change notification settings - Fork 795
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
Erroneous 'open' statement simplification #4046
Comments
Whoever gets around to looking at this - it's worth pointing out that there is a very similar bug with namespace statements: namespace Foo.Bar
open Foo then the |
Unacceptable. Just unacceptable :) |
@saul could you provide a full sample or sample project? |
@saul with the following class library project I don't see what you're reporting: namespace Testy
open System
open System.Data
open System.Data.SqlClient
module Foo =
let f() =
use conn = new SqlConnection()
()
|
Of course because they aren’t being used... try using something from System and System.Data. |
@cartermp have you turned on the feature? |
Yes, it's on. |
Fixed in #4068 |
I was able to reproduce. When you turn on the feature, it doesn't immediately reflect. You have to close the window and re-open. |
I have the following code in an F# file that uses SQL:
Expected behavior
Open statements should should never be simplified.
Actual behavior
Namespace is simplified, resulting in:
Known workarounds
Ignore the simplification
The text was updated successfully, but these errors were encountered: