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

null array-valued attribute causes the compiler internal error #316

Closed
bleis-tift opened this issue Mar 20, 2015 · 0 comments
Closed

null array-valued attribute causes the compiler internal error #316

bleis-tift opened this issue Mar 20, 2015 · 0 comments
Labels
Milestone

Comments

@bleis-tift
Copy link

Description:

Repro Steps:

open System

type Attr([<ParamArray>] x: obj[]) =
  inherit Attribute()

[<Attr(null)>]
let f () = ()

Expected:
Compilation successful.

Actual:
Compilation error.

error FS0193: internal error: not a nominal type

Version:
I tried VS 2013 only.

Link:
compilation result on ideone

Workaround:
use type annotation.

open System

type Attr([<ParamArray>] x: obj[]) =
  inherit Attribute()

[<Attr(null: string)>]
let f () = ()
@latkin latkin added the Bug label Mar 20, 2015
@dsyme dsyme added the fix ready label May 9, 2015
@dsyme dsyme changed the title null parameter causes the compiler internal error null array-valued attribute causes the compiler internal error May 11, 2015
@dsyme dsyme closed this as completed in cccf5b9 May 19, 2015
@latkin latkin added the fixed label May 19, 2015
@latkin latkin added this to the VS 2015 milestone May 19, 2015
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