mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
//// [tests/cases/conformance/expressions/commaOperator/commaOperatorWithoutOperand.ts] ////
|
|
|
|
=== commaOperatorWithoutOperand.ts ===
|
|
declare var ANY: any;
|
|
>ANY : Symbol(ANY, Decl(commaOperatorWithoutOperand.ts, 0, 11))
|
|
|
|
declare var BOOLEAN: boolean;
|
|
>BOOLEAN : Symbol(BOOLEAN, Decl(commaOperatorWithoutOperand.ts, 1, 11))
|
|
|
|
declare var NUMBER: number;
|
|
>NUMBER : Symbol(NUMBER, Decl(commaOperatorWithoutOperand.ts, 2, 11))
|
|
|
|
declare var STRING: string;
|
|
>STRING : Symbol(STRING, Decl(commaOperatorWithoutOperand.ts, 3, 11))
|
|
|
|
declare var OBJECT: Object;
|
|
>OBJECT : Symbol(OBJECT, Decl(commaOperatorWithoutOperand.ts, 4, 11))
|
|
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
|
|
// Expect to have compiler errors
|
|
// Missing the second operand
|
|
(ANY, );
|
|
>ANY : Symbol(ANY, Decl(commaOperatorWithoutOperand.ts, 0, 11))
|
|
|
|
(BOOLEAN, );
|
|
>BOOLEAN : Symbol(BOOLEAN, Decl(commaOperatorWithoutOperand.ts, 1, 11))
|
|
|
|
(NUMBER, );
|
|
>NUMBER : Symbol(NUMBER, Decl(commaOperatorWithoutOperand.ts, 2, 11))
|
|
|
|
(STRING, );
|
|
>STRING : Symbol(STRING, Decl(commaOperatorWithoutOperand.ts, 3, 11))
|
|
|
|
(OBJECT, );
|
|
>OBJECT : Symbol(OBJECT, Decl(commaOperatorWithoutOperand.ts, 4, 11))
|
|
|
|
// Missing the first operand
|
|
(, ANY);
|
|
>ANY : Symbol(ANY, Decl(commaOperatorWithoutOperand.ts, 0, 11))
|
|
|
|
(, BOOLEAN);
|
|
>BOOLEAN : Symbol(BOOLEAN, Decl(commaOperatorWithoutOperand.ts, 1, 11))
|
|
|
|
(, NUMBER);
|
|
>NUMBER : Symbol(NUMBER, Decl(commaOperatorWithoutOperand.ts, 2, 11))
|
|
|
|
(, STRING);
|
|
>STRING : Symbol(STRING, Decl(commaOperatorWithoutOperand.ts, 3, 11))
|
|
|
|
(, OBJECT);
|
|
>OBJECT : Symbol(OBJECT, Decl(commaOperatorWithoutOperand.ts, 4, 11))
|
|
|
|
// Missing all operands
|
|
( , );
|