You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[isolatedDeclarations] --isolatedDeclarations gives incorrect error when a parameter property with default value is followed by required parameter
#60976
Closed
blickly opened this issue
Jan 15, 2025
· 0 comments
Β· Fixed by #60980
π Search Terms
isolatedDeclarations, optional parameter properties, default value, spurious error
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?isolatedDeclarations=true&ts=5.7.3#code/MYGwhgzhAEBCYCdoG8C+AodBTAHgBwHsEAXaUSGAMQIJXWgbIIDsJiEBXYYogCnsaC8CAJYA3MMSzRECAFxxE0ALzRmWAO6KEvAJQAaAYIbDxk6QCMaIBVYIgsYZocG6UGVEA
π» Code
π Actual behavior
referring to the RHS
new Bar()
π Expected behavior
Should be no error, as the parameter is already annotated.
Additional information about the issue
@dragomirtitian FYI
The text was updated successfully, but these errors were encountered: