From 1140fdf7a70aa6b3b010c897e17678124c407480 Mon Sep 17 00:00:00 2001 From: John Chesley Date: Mon, 1 Apr 2019 20:18:50 -0400 Subject: [PATCH] add failing test for #2347 --- test/runtime/samples/prop-exports/_config.js | 1 + test/runtime/samples/prop-exports/main.svelte | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/test/runtime/samples/prop-exports/_config.js b/test/runtime/samples/prop-exports/_config.js index 5959d4e5a9..631c9eb0ad 100644 --- a/test/runtime/samples/prop-exports/_config.js +++ b/test/runtime/samples/prop-exports/_config.js @@ -22,6 +22,7 @@ export default { v2=4 vi1=4 $vs1=1 + vl0=hello vl1=test $s3=29 loop... diff --git a/test/runtime/samples/prop-exports/main.svelte b/test/runtime/samples/prop-exports/main.svelte index 8a8fadd7be..93c217a158 100644 --- a/test/runtime/samples/prop-exports/main.svelte +++ b/test/runtime/samples/prop-exports/main.svelte @@ -19,6 +19,10 @@ let vs1 = v1 export { vs1 as a4 } + // literal initializer + let vl0 = 'hello' + export { vl0 } + // aliased with literal initializer let vl1 = 'test' export { vl1 as a5 } @@ -41,6 +45,7 @@ $v1={$v1} v2={v2} vi1={vi1} $vs1={$vs1} +vl0={vl0} vl1={vl1} $s3={$s3} {k1}{k2}