23 lines
503 B
TypeScript
23 lines
503 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////function f() {
|
|
//// return 100;
|
|
////}
|
|
////
|
|
////export default [|f|];
|
|
////
|
|
////var x: typeof f;
|
|
////
|
|
////var y = f();
|
|
////
|
|
////namespace /**/[|f|] {
|
|
////}
|
|
|
|
// The function 'f' and the namespace 'f' don't get merged,
|
|
// but the 'export default' site, includes both meanings.
|
|
|
|
// Here we are testing whether the 'export default'
|
|
// site is included in the references to the namespace.
|
|
|
|
goTo.marker();
|
|
verify.referencesAre(test.ranges());
|