-
Notifications
You must be signed in to change notification settings - Fork 845
Open
Labels
Area-QueriesQuery expressions and library implementationQuery expressions and library implementationBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Description
In query expressions, variables bound using for are not recognized as used if they are not selected, even if they are otherwise used for example in a where or a let.
Example:
// Expected: no warning
// Actual: warning FS1182: The value 'x' is unused
query { for x in [1;2;3] do
where (x > 2)
select 1 }
// Expected: no warning
// Actual: warning FS1182: The value 'x' is unused
query { for x in [1;2;3] do
let y = x
select y }
// Expected: no warning
// Actual: no warning
query { for x in [1;2;3] do
where (x > 2)
select x }Tested on F# 3.1.2 and 4.0-RC.
Metadata
Metadata
Assignees
Labels
Area-QueriesQuery expressions and library implementationQuery expressions and library implementationBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Type
Projects
Status
In Progress