<script>
	export let bar;

	function foo(bar) {
		return bar * 2;
	}
</script>

{foo(bar)}