File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1935,7 +1935,7 @@ instanceof-expression:
1935
1935
instanceof-subject 'instanceof' class-type-designator
1936
1936
1937
1937
instanceof-subject:
1938
- unary -expression
1938
+ instanceof -expression
1939
1939
-->
1940
1940
1941
1941
<pre >
@@ -1944,17 +1944,13 @@ instanceof-subject:
1944
1944
<i ><a href =" #grammar-instanceof-subject " >instanceof-subject</a ></i > instanceof <i ><a href =" #grammar-class-type-designator " >class-type-designator</a ></i >
1945
1945
1946
1946
<i id =" grammar-instanceof-subject " >instanceof-subject:</i >
1947
- <i ><a href =" #grammar-unary -expression " >unary -expression</a ></i >
1947
+ <i ><a href =" #grammar-instanceof -expression " >instanceof -expression</a ></i >
1948
1948
</pre >
1949
1949
1950
- ** Constraints**
1951
-
1952
- The * unary-expression* in * instanceof-subject* must not be any form of literal.
1953
-
1954
1950
** Semantics**
1955
1951
1956
1952
Operator ` instanceof ` returns ` TRUE ` if the value designated by
1957
- * unary-expression * in * instanceof-subject* is an object having the type specified
1953
+ * instanceof-subject* is an object having the type specified
1958
1954
by * class-type-designator* , is an object whose type is derived from that type,
1959
1955
or is an object whose type implements the interface specified by * class-type-designator* .
1960
1956
Otherwise, it returns ` FALSE ` .
Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md#
563
563
<i ><a href =" #grammar-instanceof-subject " >instanceof-subject</a ></i > instanceof <i ><a href =" #grammar-class-type-designator " >class-type-designator</a ></i >
564
564
565
565
<i id =" grammar-instanceof-subject " >instanceof-subject:</i >
566
- <i ><a href =" #grammar-unary -expression " >unary -expression</a ></i >
566
+ <i ><a href =" #grammar-instanceof -expression " >instanceof -expression</a ></i >
567
567
568
568
<i id =" grammar-logical-NOT-expression " >logical-NOT-expression:</i >
569
569
<i ><a href =" #grammar-instanceof-expression " >instanceof-expression</a ></i >
You can’t perform that action at this time.
0 commit comments