Strange multiple export typing issue #277
Labels
bug
Something isn't working
Fixed
Fixed in master branch. Pending production release.
good first issue
Good for newcomers
Describe the bug
It is by no means a severe bug, but a very strange one still.
If you define multiple props on the same line and divide them with a comma, all the props except the first one would raise an error, that they are not defined despite their type, but only in the template, not in the script.
To Reproduce
So JS/TS allows you to define as many
let
s,const
s andexport
s in one line. I usually use this to save some keystrokes.Here's the code that works fine and generates no errors:
but this one raises an error in the template:
It is very strange, since semantically it's the same as
Should also say that this code is treated well by the IDE:
Expected behavior
It shouldn't raise any errors.
System (please complete the following information):
OS: Mac OS 10.15.3
IDE: VS Code
Plugin/Package: Svelte for VS Code (the new official one)
The text was updated successfully, but these errors were encountered: