Skip to content

Multiemit warning when using discriminated union in FSI #14216

@abonie

Description

@abonie

Repro steps

# dotnet fsi
Microsoft (R) F# Interactive version 12.0.5.0 for F# 7.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> type T = U of unit;;
type T = | U of unit
> let x = U ();;
val x: T = U ()
> match x with
- | U v -> v;;
  match x with
  ^
stdin(3,1): warning FS2303: Accessing the internal type, method or field 'item' from a previous evaluation in F# Interactive is deprecated and may cause subsequent access errors. To enable the legacy generation of a single dynamic assembly that can access internals, use the '--multiemit-' option.
val it: unit = ()
>

Expected behavior

No warning

Related information

Provide any related information (optional):

  • Operating system: Windows 11
  • .NET Runtime kind: dotnet core 7.0.100-rc.2.22477.23

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-thinks-issue-fixedArea-FSIBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No fields configured for Bug.

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions