mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
36 lines
675 B
TypeScript
36 lines
675 B
TypeScript
var temp: any;
|
|
|
|
// Error: incorrect type on left-hand side
|
|
(! --temp) ** 3;
|
|
(!temp--) ** 3;
|
|
(!3) ** 4;
|
|
(!temp++) ** 4;
|
|
(!temp--) ** 4;
|
|
|
|
(! --temp) ** 3 ** 1;
|
|
(!temp--) ** 3 ** 1;
|
|
(!3) ** 4 ** 1;
|
|
(!temp++) ** 4 ** 1;
|
|
(!temp--) ** 4 ** 1;
|
|
|
|
(typeof --temp) ** 3;
|
|
(typeof temp--) ** 3;
|
|
(typeof 3) ** 4;
|
|
(typeof temp++) ** 4;
|
|
(typeof temp--) ** 4;
|
|
|
|
1 ** (typeof --temp) ** 3;
|
|
1 ** (typeof temp--) ** 3;
|
|
1 ** (typeof 3) ** 4;
|
|
1 ** (typeof temp++) ** 4;
|
|
1 ** (typeof temp--) ** 4;
|
|
|
|
(delete --temp) ** 3;
|
|
(delete ++temp) ** 3;
|
|
(delete temp--) ** 3;
|
|
(delete temp++) ** 3;
|
|
|
|
1 ** (delete --temp) ** 3;
|
|
1 ** (delete ++temp) ** 3;
|
|
1 ** (delete temp--) ** 3;
|
|
1 ** (delete temp++) ** 3; |