Skip to content

Non deterministic edge case with parallel reference resolution #18977

@majocha

Description

@majocha

I'm investigating the feasibility of enabling some of the parallelizations by default.

Now, with parallelReferenceResolution on, there is a test failure in

What the test does is simply reference two assemblies that define the same type (namespace and all).

Now, the expected result appears to be that the order of referencing makes one type shadow another. This randomly fails with parallel resolution, because of undetermined order. Also this does not seem optimal tbh, I'd expect at least a warning of some kind?

The internet says C# in the same situation will fail the compilation and require extern alias to disambiguate the types.

I wonder, if F# behavior in this case is specified and expected? The existence of a test suggest so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions