Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KevinRansom opened this issue Jan 18, 2015 · 0 comments
Labels

Comments

@KevinRansom
Copy link
Member

[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants