-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[Bug] Mixin parameters failed to use as Method Parameter types of Inner Classes #50792
Comments
The error message is correct. |
I know that
|
I think this workaround should work:
|
@whzx5byb Thanks your hack code, but I wonder that |
@whzx5byb If I use both type & value of classes, your hack code shows a type error in my VS Code 1.71.0:
but TS playground & GitPod's VS Code 1.69.2 works fine, too... |
A class declaration does create value and type entities but a variable only create the value one. In your case
I believe this is a bug, which is similar to #50191 and #50161. I have reported it in #50795. |
compiles to It looks like the behavior of |
π Search Terms
mixin, parameter, class method, type declaration, decorator
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Type checking crashed
Compiled seems to work
π Expected behavior
Shown sample code works, so that projects with Decorator frameworks will be much simpler, like what my service scaffold does: idea2app/REST-Node-ts#1
The text was updated successfully, but these errors were encountered: