@@ -5529,9 +5529,9 @@ \section{Interfaces}
5529
5529
(\ref{propertyExtraction}),
5530
5530
any type $T$ which is $T_0$ bounded
5531
5531
(\ref{typesBoundedByTypes}),
5532
- where $T_0$ is a class with interface $I$,
5532
+ where $T_0$ is a type with interface $I$,
5533
5533
is also considered to have interface $I$.
5534
- Similarly , when $T$ is $T_0$ bounded where $T_0$ is a function type,
5534
+ In particular , when $T$ is $T_0$ bounded where $T_0$ is a function type,
5535
5535
$T$ is considered to have a method named \CALL{} with signature $m$,
5536
5536
such that the function type of $m$ is $T_0$.
5537
5537
@@ -23273,8 +23273,10 @@ \subsection{Type Nullability}
23273
23273
For example, even though \code{$e_1$.isEven} is allowed
23274
23274
when the type of $e_1$ is \code{int},
23275
23275
\code{$e_2$.isEven} is a compile-time error
23276
- when the type of $e_2$ is \code{int?}\ or
23277
- a type variable $X$ whose bound is \code{int?}.%
23276
+ when the type of $e_2$ is \code{int?}.
23277
+ It is also an error for a type variable $X$ whose bound is \code{int?},
23278
+ because they have the same interface
23279
+ (\ref{interfaces}).%
23278
23280
}
23279
23281
23280
23282
0 commit comments