mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
10 lines
255 B
TypeScript
10 lines
255 B
TypeScript
// Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error.
|
|
|
|
class C {
|
|
private foo: string;
|
|
private static bar: string;
|
|
}
|
|
|
|
module C {
|
|
export var y = C.bar; // error
|
|
} |