2014-11-11 00:56:18 +01:00
|
|
|
tests/cases/compiler/privacyCheckTypeOfFunction.ts(3,22): error TS4025: Exported variable 'x' has or is using private name 'foo'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/privacyCheckTypeOfFunction.ts(4,12): error TS4025: Exported variable 'b' has or is using private name 'foo'.
|
|
|
|
|
|
|
|
|
2014-08-09 01:15:09 +02:00
|
|
|
==== tests/cases/compiler/privacyCheckTypeOfFunction.ts (2 errors) ====
|
|
|
|
function foo() {
|
|
|
|
}
|
|
|
|
export var x: typeof foo;
|
2014-11-11 00:56:18 +01:00
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4025: Exported variable 'x' has or is using private name 'foo'.
|
2014-08-09 01:15:09 +02:00
|
|
|
export var b = foo;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS4025: Exported variable 'b' has or is using private name 'foo'.
|
2014-08-09 01:15:09 +02:00
|
|
|
|