-
Notifications
You must be signed in to change notification settings - Fork 763
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
Type inference for a record/class behaves differently when module is open or not #1294
Labels
Comments
dsyme
added
Bug
Area-Compiler
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
and removed
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
labels
Jun 29, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Sep 2, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Sep 2, 2016
5 tasks
proposed a fix in #1512 |
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Nov 22, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Nov 22, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Nov 23, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Nov 23, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Nov 23, 2016
forki
added a commit
to forki/visualfsharp
that referenced
this issue
Nov 23, 2016
This issue still persists, exactly as described by @ant0nsc.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
In a module that defines a record
R
and a discriminated union type where one case is calledR
, type inference is able to distinguish between the 2 types when the module is open, but not when I qualify the type name with the module name.Repro steps
Expected behavior
In
record2
, I would have expected thatModule.R
is inferred to be the record type.Actual behavior
Module.R
is inferred to be of typeChoice.R
Known workarounds
Open the module.
Related information
Tested in
Microsoft (R) F# Interactive version 14.0.23413.0
, Windows 10, Visual Studio 2015.Originally submitted here
The text was updated successfully, but these errors were encountered: