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
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.
Describe the bug
The following input code should log
1
in stdout, but when transpiled with SWC it logs the instance ofBar
.It seems that
_possibleConstructorReturn
only returns when the value's type isobject
orfunction
, which is incorrect.Input code
Config
Playground link
https://play.swc.rs/?version=1.3.19&code=H4sIAAAAAAAAA11PMQ7CMAzc8wqPyVKJOWJh4B9VagpSFKPEEUgofyd2S6ty293Zd3aIYylwJYJPMyYou4wZ8M2YptUx0BEoFc41MGXrVk1Q6hO74jeB748yJJoQznDaZd2HgvHWdZn528hE3J09WDAjg0QdGn%2FIyDUnjdQ%2Bf5hoG2uL0Yx82K%2BgiEOk2dqEL3nWOqftGuL8F4aikMcTAQAA&config=H4sIAAAAAAAAA0WMTQrEIAxG75K1286id5hDBCctFv9IUhgR714tlu7C915ehUMsrBUyshCPS0pU%2FMMKZAOKZZcVTNf6tKEXagYUeScdiiyd%2BZSEJjUQXHRbGSWbQmYSeRHG3T9m66GQfucYKmjJdAc%2F0N7G%2FHPynaLySe0Cj9ke9LUAAAA%3D
Expected behavior
Logs 1.
Actual behavior
Logs the instance of
Bar
.Version
1.3.19
Additional context
No response
The text was updated successfully, but these errors were encountered: