22 lines
443 B
Plaintext
22 lines
443 B
Plaintext
exports[`test declare_class.js 1`] = `
|
|
"declare class C {
|
|
static x: number;
|
|
static foo(x: number): void;
|
|
}
|
|
|
|
C.x = \"\";
|
|
C.foo(\"\");
|
|
|
|
(C.name: string);
|
|
(C.name: number); // error, it\'s a string
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
declare class C { static x: number, static foo(x: number): void }
|
|
|
|
C.x = \"\";
|
|
C.foo(\"\");
|
|
|
|
(C.name: string);
|
|
(C.name: number); // error, it\'s a string
|
|
"
|
|
`;
|