Skip to content

Untagged template literals are incorrectly marked as slow types #453

Open
@lucacasonato

Description

@lucacasonato
// these should be fine
const x = `hello world`;
const x = `hello world` as const;
let x = `hello ${foobar} world`;

// these are not allowed
const x = tpl`hello world`;
const x = `hello ${foobar} world`; // if foobar is a specific string literal type, x will be a merger of these strings.
const x = `hello ${foobar} world` as const;

However right now all are disallowed.

Ref denoland/deno_graph#457 and denoland/deno_graph#458

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions