mirror of https://github.com/sveltejs/svelte
fix: disallow using `let:` directives with component render tags (#12400)
closes #12087pull/12395/head
parent
fd7b950e7d
commit
f846cb4833
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: disallow using `let:` directives with component render tags
|
@ -0,0 +1,8 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
runtime_error: 'render_tag_invalid_argument'
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
{@render children(true)}
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Inner from './inner.svelte';
|
||||
</script>
|
||||
|
||||
<Inner let:foo>
|
||||
{foo}
|
||||
</Inner>
|
Loading…
Reference in new issue