Skip to content

Internal error/crash: System.ArgumentException: not a measure abbreviation, or in correct kind #38

@KevinRansom

Description

@KevinRansom

[from auto-reported crashes]

Minimal repro:

type [<Measure>] N = foo // foo is undefined
type M2 = float<N>

This causes fsc to explode.

A number of internal errors are reported, then fsc crashes with Unhandled Exception: System.ArgumentException: not a measure abbreviation, or incorrect kind. Parameter name: tcref.

[investigation from Vlad]
Presumably error in reduceTyconRefAbbrevMeasureable is a cascading failure caused by some error upstream => it should be made more robust so exceptions won't be raised if abbreviation contains stub type created to handle errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions