12 lines
416 B
Plaintext
12 lines
416 B
Plaintext
tests/cases/compiler/propertyAccessibility1.ts(5,1): error TS2341: Property 'privProp' is private and only accessible within class 'Foo'.
|
|
|
|
|
|
==== tests/cases/compiler/propertyAccessibility1.ts (1 errors) ====
|
|
class Foo {
|
|
private privProp = 0;
|
|
}
|
|
var f = new Foo();
|
|
f.privProp;
|
|
~~~~~~~~~~
|
|
!!! error TS2341: Property 'privProp' is private and only accessible within class 'Foo'.
|
|
|