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
swc decleration emit incorrectly fails with TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations. when using an iterator method. See here for the expected behavior in the TypeScript compiler.
Describe the bug
swc
decleration emit incorrectly fails withTS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.
when using an iterator method. See here for the expected behavior in the TypeScript compiler.Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.10.6&code=H4sIAAAAAAAAA42Rv07EMAzGd57CY6ur7gHag52F4W5EDGnrQqQ0rRzndAjl3cmfC22hA98QKf5s%2F%2BwEb%2FNEDJ0SxsCLHVuks9DvCHKcFY6o2cAzI4lW4UlH%2Fwm%2BHsBrJnkVjGBYENeQzGZjoe4XIzrdpA2T7XiiYlNYrZPLOyKIP6Q5xlR4TKxm6%2Fk67%2FgzxV0CvV4%2Bx3ZSRxmG97S3oqzTJv7ya5Mghf4VLJHf2HdboAssjg6JlsH3rYII2ZJedQzSeOM1%2BIzGKt7BZ8kBijzGKW5V7mSteXAVymKdhz8cKugn7QODUAbBNX%2BqHWBw%2FtfW6h4HqbHPbf3v7XfdRFz1c3X5X9w33uLZ%2Fm0CAAA%3D&config=H4sIAAAAAAAAA1WMOQ6AMAwEe14RueYF1DQUPCIKLoI4LNtIQYi%2FY64Iut0Z7W6Fc9BLgMptFq2QZ0HO3Yisk%2FpkBHQllMCRFMrXqpxKecGL7LcATIQcR7Tp8Dk7zRi1kXnwil2t8hsXzwHIvHDA1lP2%2BwE5e0RDqwAAAA%3D%3D
SWC Info output
No response
Expected behavior
Correctly typed code with
[Symbol.iterator]()
should be compatible withemitIsolatedDts
Actual behavior
No response
Version
1.10.6
Additional context
No response
The text was updated successfully, but these errors were encountered: