Skip to content

Graph based checking error with CompilationRepresentationFlags.ModuleSuffix #15985

@kerams

Description

@kerams

Create a new fsproj, add a.fs, b.fs and c.fs in this order, and enable graph based checking.

a.fs

namespace F.General

b.fs

[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module F

let br () = ()

c.fs

module S

[<EntryPoint>]
let main _ =
    F.br ()
    0

Build.

Expected behavior

Compiles successfully.

Actual behavior

c.fs(5,5): error FS0039: The value, namespace, type or module 'F' is not defined. It looks like it has been established that c.fs does not depend on b.fs, and both files are checked in parallel.

Known workarounds

Disable graph based checking.

Related information

SDK 8.0.100-rc.1.23455.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions