2014-09-19 15:37:55 +02:00
|
|
|
tests/cases/compiler/propertyAccessibility1.ts(5,1): error TS2341: Property 'privProp' is private and only accessible within class 'Foo'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/propertyAccessibility1.ts (1 errors) ====
|
|
|
|
class Foo {
|
|
|
|
private privProp = 0;
|
|
|
|
}
|
|
|
|
var f = new Foo();
|
|
|
|
f.privProp;
|
|
|
|
~~~~~~~~~~
|
2014-09-19 15:37:55 +02:00
|
|
|
!!! error TS2341: Property 'privProp' is private and only accessible within class 'Foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|