mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
545 B
TypeScript
26 lines
545 B
TypeScript
//// [tests/cases/conformance/expressions/asOperator/asOperator4.ts] ////
|
|
|
|
//// [foo.ts]
|
|
export function foo() { }
|
|
|
|
//// [bar.ts]
|
|
import { foo } from './foo';
|
|
|
|
// These should emit identically
|
|
<any>foo;
|
|
(foo as any);
|
|
|
|
|
|
//// [foo.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.foo = foo;
|
|
function foo() { }
|
|
//// [bar.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const foo_1 = require("./foo");
|
|
// These should emit identically
|
|
foo_1.foo;
|
|
foo_1.foo;
|