12 lines
No EOL
416 B
Text
12 lines
No EOL
416 B
Text
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'.
|
|
|