You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not exactly sure how to phrase the title of this bug report so please update if it doesn't make sense. While trying to workaround/create a concept so that a set of components could follow a strict pattern and enforce an abstract class (sveltejs/svelte#15552), I found this issue.
The doSomething method requires a data parameter of type number. The type checker got it right when the parameter was passed in (S1.svelte and S3.svelte) but not when it was simply left out (S2.svelte)
Describe the bug
I'm not exactly sure how to phrase the title of this bug report so please update if it doesn't make sense. While trying to workaround/create a concept so that a set of components could follow a strict pattern and enforce an abstract class (sveltejs/svelte#15552), I found this issue.
The doSomething method requires a data parameter of type number. The type checker got it right when the parameter was passed in (S1.svelte and S3.svelte) but not when it was simply left out (S2.svelte)
Reproduction
See https://github.com/Jojoshua/svelte5-issue1/tree/master/src/Specialty
Expected behaviour
I expect an error to be shown for S2.svelte where it requires a parameter of type number to be passed into the component prop
System Info
Which package is the issue about?
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: