From 1098b6c1f5e0e8d10e869cb0d529b54e5f988b3d Mon Sep 17 00:00:00 2001 From: John Chesley Date: Fri, 5 Apr 2019 22:01:17 -0400 Subject: [PATCH] add failing test for #2278 --- test/runtime/samples/function-hoisting/_config.js | 7 +++++++ .../runtime/samples/function-hoisting/main.svelte | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/runtime/samples/function-hoisting/_config.js create mode 100644 test/runtime/samples/function-hoisting/main.svelte diff --git a/test/runtime/samples/function-hoisting/_config.js b/test/runtime/samples/function-hoisting/_config.js new file mode 100644 index 0000000000..5a22ffaf0b --- /dev/null +++ b/test/runtime/samples/function-hoisting/_config.js @@ -0,0 +1,7 @@ +export default { + props: { + greeting: 'Good day' + }, + + html: '

Good day, world

' +} diff --git a/test/runtime/samples/function-hoisting/main.svelte b/test/runtime/samples/function-hoisting/main.svelte new file mode 100644 index 0000000000..109697193c --- /dev/null +++ b/test/runtime/samples/function-hoisting/main.svelte @@ -0,0 +1,15 @@ + + +

{greeting}, {hoistMeMaybe()}