diff --git a/test/function/shadowed-namespace-b/_config.js b/test/function/shadowed-namespace-b/_config.js new file mode 100644 index 0000000..fba6d0d --- /dev/null +++ b/test/function/shadowed-namespace-b/_config.js @@ -0,0 +1,3 @@ +module.exports = { + description: 'namespaces are not shadowed (b)' +}; diff --git a/test/function/shadowed-namespace-b/bar.js b/test/function/shadowed-namespace-b/bar.js new file mode 100644 index 0000000..9784963 --- /dev/null +++ b/test/function/shadowed-namespace-b/bar.js @@ -0,0 +1,3 @@ +export function foo () { + return 42; +} diff --git a/test/function/shadowed-namespace-b/main.js b/test/function/shadowed-namespace-b/main.js new file mode 100644 index 0000000..cc08ad9 --- /dev/null +++ b/test/function/shadowed-namespace-b/main.js @@ -0,0 +1,10 @@ +import * as bar from './bar'; + +function car () { + var foo = function () { + return 'nope'; + }; + return bar.foo(); +} + +assert.equal( car(), 42 );