correctly transform inline shorthand methods - fixes #2906

pull/7738/head
Richard Harris 6 years ago
parent 9e9db10719
commit b0246474ce

@ -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