Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 Rome invalid catch of object key name outside of defined interface scope #4517

Closed
1 task done
MrSimmmons opened this issue May 20, 2023 · 2 comments
Closed
1 task done
Labels
S-To triage Status: user report of a possible bug that needs to be triaged

Comments

@MrSimmmons
Copy link

Environment information

CLI:
  Version:                      12.1.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           macos

Environment:
  ROME_LOG_DIR:                 unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v14.18.1"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "yarn/1.22.19"

Rome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    true
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?

See playground for example

Notice how in the playground example you can rename the second key to any other string and it works fine.

Expected result

I should be able to re-declare an interface object key in a different scope using the same name without Rome triggering an error

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@MrSimmmons MrSimmmons added the S-To triage Status: user report of a possible bug that needs to be triaged label May 20, 2023
@MrSimmmons
Copy link
Author

Please feel free to rename the title. I'm unsure how to describe the issue in a small amount of words

@ematipico
Copy link
Contributor

Duplicate of #4478

@ematipico ematipico closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S-To triage Status: user report of a possible bug that needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants