Skip to content

Interpolating an invalid reference include confusing error #9606

@timotheeguerin

Description

@timotheeguerin
const b = "Some ${bad}";
invalid-ref Unknown identifier bad
non-literal-string-template Value interpolated in this string template cannot be converted to a string. Only literal types can be automatically interpolated.

Playground Link

non-literal-string-template should probably not be reported if the interpolated type is already an errorType

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions