-
Notifications
You must be signed in to change notification settings - Fork 805
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 when implementing interface with auto property in record type (Unexpected definition (AutoProperty...) #13690
Comments
type Foo =
abstract member X : string with get, set
type FooImpl =
interface Foo with
member val X = "" with get, set Also fails but for a different reason:
But this code is weird regardless, since |
This works, though: type Foo =
abstract member X : string with get, set
type FooImpl() =
interface Foo with
member val X = "" with get, set |
Interesting, it also fails on sharplab, which uses 10 months old FCS. It seems bug is there for some time and unrelated to Florian's changes. |
So, we've checked it, and it's broken since at least |
@vzarytovskii Any decision here ? . Happy to help with error reporting |
The internal error reported in this issue has been fixed at some point in F# 8 likely by #15343. We have now an error an error message We could close this issue and raise separate issues for :
|
@vzarytovskii This can be closed |
Under .net framework FSI, I'm getting internal error:
Repro steps
Actual behavior
Expected behavior
Compiles.
Known workarounds
To not use a record.
Related information
The text was updated successfully, but these errors were encountered: