Describe the bug
Svelte doesn't understand ! when it's used outside the script tags.
Reproduction
<script lang="ts">
let foo: string | undefined = undefined
function someFunction(param: string) {
return param
}
$: bar = foo
</script>
{#if bar}
{someFunction(foo!)}
Unexpected tokensvelte(parse-error)
Unexpected tokents(-1)
{/if}
Logs
No response
System Info
Severity
annoyance