Skip to content

Erroneous 'open' statement simplification #4046

Closed
@saul

Description

@saul

I have the following code in an F# file that uses SQL:

open System
open System.Data // "System." is marked as unnecessary
open System.Data.SqlClient // "System.Data." is marked as unnecessary

Expected behavior

Open statements should should never be simplified.

Actual behavior

Namespace is simplified, resulting in:

FS0893: This declaration opens the namespace or module 'System.Data.SqlClient' through a partially qualified path. Adjust the code to use the full path of the namespace. This change will make your code more robust as new constructs are added to the F# and CLI libraries.

Known workarounds

Ignore the simplification

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions