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