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

False positive lint report: Function can be merged with ambient context class #8367

Closed
magic-akari opened this issue Dec 2, 2023 · 1 comment · Fixed by #8368
Closed
Labels
Milestone

Comments

@magic-akari
Copy link
Member

Describe the bug

TypeScript Playground

Input code

declare class Foo{}

function Foo(){}

Config

{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "tsx": false,
    },
    "target": "es2022"
  },
  "module": {
    "type": "nodenext",
  },
  "minify": false,
  "isModule": true
}

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAA0tJTc5JLEpVAJLFxQpu%2BfnVtVxcaaV5ySWZ%2BXkgvoZmdS0AKADm2SUAAAA%3D&config=H4sIAAAAAAAAA01NOw6DMAzdc4rIc4cqY%2B%2FQQ0TwqIIgRLaRiBB3b6JAy2S%2F%2F26spVE6etm9vAUkzwL%2B4cJIjuq3wpDmBOk4JKXHpapUafCToHFHO6SeP9Aag7inc2ROjealXyf8J2tt9cWlR8TWyk9riGHI9wEK8r7yyivM8QVZt1VAxAAAAA%3D%3D

SWC Info output

No response

Expected behavior

compile without error.

Actual behavior

No response

Version

1.3.100

Additional context

No response

@kdy1 kdy1 added this to the Planned milestone Dec 3, 2023
@kdy1 kdy1 closed this as completed in #8368 Dec 3, 2023
kdy1 pushed a commit that referenced this issue Dec 3, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.101 Dec 18, 2023
@swc-bot
Copy link
Collaborator

swc-bot commented Jan 17, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants