correctly transform inline shorthand methods - fixes #2906

pull/3151/head
Richard Harris 6 years ago
parent f341befacb
commit eff7f504d4

@ -442,6 +442,10 @@ export default class Expression {
`);
}
if (parent && parent.method) {
code.prependRight(node.start, ': ');
}
function_expression = null;
dependencies = null;
contextual_dependencies = null;

@ -0,0 +1,5 @@
<script>
export let bar;
</script>
{bar.answer()}

@ -0,0 +1,9 @@
<script>
import Foo from './Foo.svelte';
</script>
<Foo bar={{
answer() {
return 42;
}
}} />
Loading…
Cancel
Save