Skip to content

Compiler crashes if an anonymous record passed as obj argument #6434

Description

@vasily-kirichenko

Try to compile this:

module AnonRecordBug.T

let foo (_: obj) = ()

let bar() = foo {| F = 1 |}

Result (compiler crashes):

parameter error FS0192: error : the anonymous record <>f__AnonymousType332488747`1' has not been generated in the pre-phase of generating this module

@dsyme

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions