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

fable compiler hangs when Struct type has a clashing member name #3842

Closed
joprice opened this issue Jun 12, 2024 · 0 comments
Closed

fable compiler hangs when Struct type has a clashing member name #3842

joprice opened this issue Jun 12, 2024 · 0 comments

Comments

@joprice
Copy link
Contributor

joprice commented Jun 12, 2024

Description

When a type tries to define a member with the same name as a constructor parameter, fsc (and the online repl) quickly returns with The member 'x' can not be defined because the name 'x' clashes with the field 'x' in this type or module, but fable hangs indefinitely.

Repro code

[<Struct>]
type Point(x: int, y: int) =
    member _.x() = x
    member _.X = x
    member _.Y = y

Related information

  • Fable version: 4.19.0
  • Operating system: OSX
ncave added a commit to ncave/Fable that referenced this issue Jun 13, 2024
ncave added a commit to ncave/Fable that referenced this issue Jun 13, 2024
@ncave ncave mentioned this issue Jun 13, 2024
@ncave ncave closed this as completed in 0913c0c Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant