fable-compiler / fable-compiler.github.io

Fable web site
https://fable.io
23 stars 63 forks source link

fix(docs): StringEnum doesn't exist #156

Closed hesxenon closed 1 year ago

hesxenon commented 1 year ago

I think StringEnum doesn't exist anymore? StringEnumAttribute seems to be correct now

MangelMaxime commented 1 year ago

StringEnum does exist.

In F#, the Attribute suffix is optional on the caller side.

For example, this is why you can write both:

[<RequiredQualifiedAccess>]
module A =

[<RequiredQualifiedAccessAttribute>]
module B =
hesxenon commented 1 year ago

Good to know, but then why would StringEnum throw an error but StringEnumAttribute does not?

After running dotnet build both options work :thinking:

MangelMaxime commented 1 year ago

Probably a cache problem or something not restored properly for your IDE/Fable.