mirror of https://github.com/sveltejs/svelte
shift injected declarations to the top (#5837)
parent
2d5d6b05ed
commit
a41c7644e6
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: '<p>aca</p>'
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
<script>
|
||||
export let a = 'a';
|
||||
let b;
|
||||
$: c = a;
|
||||
|
||||
function foo() {
|
||||
b = c === 'a' ? 'b' : 'c';
|
||||
}
|
||||
foo();
|
||||
</script>
|
||||
|
||||
<p>{a}{b}{c}</p>
|
Loading…
Reference in new issue