Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/instanceofOnInstantiationExpression.js.diff

14 lines
494 B
Diff

--- old.instanceofOnInstantiationExpression.js
+++ new.instanceofOnInstantiationExpression.js
@@= skipped -21, +21 lines =@@
//// [instanceofOnInstantiationExpression.js]
"use strict";
maybeBox instanceof Box; // OK
-maybeBox instanceof (Box); // error
+maybeBox instanceof Box; // error
maybeBox instanceof (Box); // error
maybeBox instanceof ((Box)); // error
-(Box) instanceof Object; // OK
+Box instanceof Object; // OK
(Box) instanceof Object; // OK
((Box)) instanceof Object; // OK