mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
584 B
TypeScript
20 lines
584 B
TypeScript
//// [tests/cases/compiler/implicitAnyInAmbientDeclaration.ts] ////
|
|
|
|
//// [implicitAnyInAmbientDeclaration.ts]
|
|
namespace Test {
|
|
declare class C {
|
|
public publicMember; // this should be an error
|
|
private privateMember; // this should not be an error
|
|
|
|
public publicFunction(x); // this should be an error
|
|
private privateFunction(privateParam); // this should not be an error
|
|
private constructor(privateParam);
|
|
}
|
|
}
|
|
|
|
//// [implicitAnyInAmbientDeclaration.js]
|
|
"use strict";
|
|
var Test;
|
|
(function (Test) {
|
|
})(Test || (Test = {}));
|