Skip to content

Expect a compile error when class binding name is empty #5858

Closed
@itsdonnix

Description

@itsdonnix

Is your feature request related to a problem? Please describe.
Yes. Sometimes dev's maybe thought that this is a bug

Describe the solution you'd like
The compiler should give a compile error

Additional context

<h1 class:={true}>Hello!</h1>

https://svelte.dev/repl/4afa49d00f544af18d89594881340a54?version=3.31.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions