mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
3 changed files with 19 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'namespaces are not shadowed' |
|||
}; |
@ -0,0 +1,3 @@ |
|||
export function foo () { |
|||
return 'FUBAR'; |
|||
} |
@ -0,0 +1,13 @@ |
|||
import * as bar from './bar'; |
|||
|
|||
function car () { |
|||
var bar = { |
|||
foo: function () { |
|||
return 42; |
|||
} |
|||
}; |
|||
return bar.foo(); |
|||
} |
|||
|
|||
assert.equal( bar.foo(), 'FUBAR' ); |
|||
assert.equal( car(), 42 ); |
Loading…
Reference in new issue