File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2230,7 +2230,7 @@ instanceof-subject:
22302230
22312231instanceof-type-designator: 
22322232 qualified-name 
2233-  expression  
2233+  variable  
22342234--> 
22352235
22362236<pre >
@@ -2243,13 +2243,14 @@ instanceof-type-designator:
22432243
22442244<i  id =" grammar-instanceof-type-designator " >instanceof-type-designator:</i >
22452245 <i ><a  href =" 09-lexical-structure.md#grammar-qualified-name " >qualified-name</a ></i >
2246-  <i ><a  href =" #grammar-expression  " >expression </a ></i >
2246+  <i ><a  href =" #grammar-variable  " >variable </a ></i >
22472247</pre >
22482248
22492249** Constraints** 
22502250
2251- The * expression*  in * instanceof-type-designator*  and * instanceof-subject*  must not be any form of
2252- literal.
2251+ The * expression*  in * instanceof-subject*  must not be any form of literal.
2252+ 
2253+ The * variable*  in * instanceof-type-designator*  must not contain calls.
22532254
22542255** Semantics** 
22552256
Original file line number Diff line number Diff line change @@ -599,7 +599,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md#
599599
600600<i  id =" grammar-instanceof-type-designator " >instanceof-type-designator:</i >
601601 <i ><a  href =" #grammar-qualified-name " >qualified-name</a ></i >
602-  <i ><a  href =" #grammar-expression  " >expression </a ></i >
602+  <i ><a  href =" #grammar-variable  " >variable </a ></i >
603603
604604<i  id =" grammar-multiplicative-expression " >multiplicative-expression:</i >
605605 <i ><a  href =" #grammar-instanceof-expression " >instanceof-expression</a ></i >
                         You can’t perform that action at this time. 
           
                  
0 commit comments