14 lines
No EOL
618 B
Text
14 lines
No EOL
618 B
Text
tests/cases/compiler/privacyCheckTypeOfFunction.ts(3,12): 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'.
|
|
|