Skip to content

CurriedParameterGroups can not be accessed in a nested function. #146

@7sharp9

Description

@7sharp9

The following code illustrates the issue:

module Test =
    let half (str: string) = str.[..str.Length / 2]

[<EntryPoint>]
let main argv = 
    let half (str: string) = str.[..str.Length / 2]
    0

Both symbols for half should have the same CurriedParameterGroups count, however the second one defined within the main function throws an exception when CurriedParameterGroups is accessed stating: not a module let binding or member

If this is not supported then how van the type parameters for the function be accessed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions