Skip to content

No error if space after = #3026

@gurjeet

Description

@gurjeet

The following example does not work. It's reproducible on repl.

https://svelte.dev/repl/80e0bfba5c364c9e9c5cfe6d792b8c50?version=3.5.1

<script>
	let count = 0;
	function handleClick() {
		count += 1;
	}
</script>

<button on:click= {handleClick}>
	Clicked {count} {count === 1 ? 'time' : 'times'}
</button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions