{{ bar }}
- {{ count }} {{ constant }} {{ maybe }} {{ lett }} {{ other }}
+ {{ count }} {{ constant }} {{ maybe }} {{ lett }} {{ other }} {{ new TestClass() }}
{{ tree.foo() }}
`,
@@ -565,6 +566,8 @@ defineExpose({ foo: 123 })
expect(content).toMatch(`unref(bar)`)
// should unref other imports
expect(content).toMatch(`unref(other)`)
+ // #6483 should add an extra set of parentheses after new
+ expect(content).toMatch(`new (_unref(TestClass))()`)
// no need to unref constant literals
expect(content).not.toMatch(`unref(constant)`)
// should directly use .value for known refs