TypeScript/tests/cases/compiler/moduleElementsInWrongContext2.ts

30 lines
589 B
TypeScript
Raw Normal View History

2015-06-10 01:59:17 +02:00
function blah () {
module M { }
export namespace N {
export interface I { }
}
namespace Q.K { }
declare module "ambient" {
}
export = M;
var v;
function foo() { }
export * from "ambient";
export { foo };
export { baz as b } from "ambient";
export default v;
export default class C { }
export function bee() { }
import I = M;
import I2 = require("foo");
import * as Foo from "ambient";
import bar from "ambient";
import { baz } from "ambient";
import "ambient";
}