mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
1.5 KiB
Diff
22 lines
1.5 KiB
Diff
--- old.privateNameMethodClassExpression.errors.txt
|
|
+++ new.privateNameMethodClassExpression.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-privateNameMethodClassExpression.ts(9,17): error TS18013: Property '#method' is not accessible outside class '(anonymous)' because it has a private identifier.
|
|
-privateNameMethodClassExpression.ts(10,17): error TS18013: Property '#field' is not accessible outside class '(anonymous)' because it has a private identifier.
|
|
+privateNameMethodClassExpression.ts(9,17): error TS18013: Property '#method' is not accessible outside class 'C' because it has a private identifier.
|
|
+privateNameMethodClassExpression.ts(10,17): error TS18013: Property '#field' is not accessible outside class 'C' because it has a private identifier.
|
|
|
|
|
|
==== privateNameMethodClassExpression.ts (2 errors) ====
|
|
@@= skipped -12, +12 lines =@@
|
|
console.log(C.getInstance().getField());
|
|
C.getInstance().#method; // Error
|
|
~~~~~~~
|
|
-!!! error TS18013: Property '#method' is not accessible outside class '(anonymous)' because it has a private identifier.
|
|
+!!! error TS18013: Property '#method' is not accessible outside class 'C' because it has a private identifier.
|
|
C.getInstance().#field; // Error
|
|
~~~~~~
|
|
-!!! error TS18013: Property '#field' is not accessible outside class '(anonymous)' because it has a private identifier.
|
|
+!!! error TS18013: Property '#field' is not accessible outside class 'C' because it has a private identifier.
|
|
|
|
|