TypeScript/tests/baselines/reference/privacyCheckTypeOfFunction.errors.txt

14 lines
630 B
Plaintext

tests/cases/compiler/privacyCheckTypeOfFunction.ts(3,22): error TS4025: Exported variable 'x' has or is using private name 'foo'.
tests/cases/compiler/privacyCheckTypeOfFunction.ts(4,12): error TS4025: Exported variable 'b' has or is using private name 'foo'.
==== tests/cases/compiler/privacyCheckTypeOfFunction.ts (2 errors) ====
function foo() {
}
export var x: typeof foo;
~~~
!!! error TS4025: Exported variable 'x' has or is using private name 'foo'.
export var b = foo;
~
!!! error TS4025: Exported variable 'b' has or is using private name 'foo'.