@@ -5577,9 +5577,9 @@ \section{Interfaces}
5577
5577
(\ref{propertyExtraction}),
5578
5578
any type $T$ which is $T_0$ bounded
5579
5579
(\ref{typesBoundedByTypes}),
5580
- where $T_0$ is a class with interface $I$,
5580
+ where $T_0$ is a type with interface $I$,
5581
5581
is also considered to have interface $I$.
5582
- Similarly , when $T$ is $T_0$ bounded where $T_0$ is a function type,
5582
+ In particular , when $T$ is $T_0$ bounded where $T_0$ is a function type,
5583
5583
$T$ is considered to have a method named \CALL{} with signature $m$,
5584
5584
such that the function type of $m$ is $T_0$.
5585
5585
@@ -23642,8 +23642,10 @@ \subsection{Type Nullability}
23642
23642
For example, even though \code{$e_1$.isEven} is allowed
23643
23643
when the type of $e_1$ is \code{int},
23644
23644
\code{$e_2$.isEven} is a compile-time error
23645
- when the type of $e_2$ is \code{int?}\ or
23646
- a type variable $X$ whose bound is \code{int?}.%
23645
+ when the type of $e_2$ is \code{int?}.
23646
+ It is also an error for a type variable $X$ whose bound is \code{int?},
23647
+ because they have the same interface
23648
+ (\ref{interfaces}).%
23647
23649
}
23648
23650
23649
23651
0 commit comments