-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Report unreachable on enums #58380
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
Report unreachable on enums #58380
Conversation
@typescript-bot test it |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
Hey @jakebailey, the results of running the DT tests are ready. Everything looks the same! |
@jakebailey Here are the results of running the user tests comparing Everything looks good! |
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the top 400 repos comparing Everything looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a great error span but it's fine.
Yeah, this isn't quite done; classes get a better message here. |
I'm actually confused what I meant by "classes have a better message"; I updated the test and it seems like they're identical. |
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Oh, #58380 (comment) wasn't fixed by this. |
tests/baselines/reference/unreachableDeclarations(preserveconstenums=false).errors.txt
Show resolved
Hide resolved
@@ -33,7 +33,6 @@ verify.codeFixAll({ | |||
type T = number; | |||
interface I {} | |||
const enum E {} | |||
enum EE {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new behavior change; we're now saying that this enum exists at runtime and are removing it, which I believe to be correct.
@typescript-bot test it |
Hey @jakebailey, the results of running the DT tests are ready. Everything looks the same! |
@jakebailey Here are the results of running the user tests with tsc comparing Everything looks good! |
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
Fixes #58379