Remove ~/ special casing in static type system.
The "special case" text just says that the return type of `~/` on `int` is `int`, which is also its declared type, so the text isn't necessary. Bug: http://dartbug/com/15650 Change-Id: Iba7fcc621e27dcba24dfdede2a0960f2f5ecd2f9 Reviewed-on: https://dart-review.googlesource.com/48144 Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
06ebf884db
commit
289a3d2799
@@ -6415,11 +6415,9 @@ A multiplicative expression of the form \SUPER{} $op$ $e_2$ is equivalent to the
|
||||
|
||||
\LMHash{}
|
||||
The static type of an multiplicative expression is usually determined by the signature given in the declaration of the operator used.
|
||||
However, invocations of the operators \code{*}, \code{\%} and \code{\~{}/} of class \code{int} are treated specially by the typechecker.
|
||||
However, invocations of the operators \code{*} and \code{\%} of class \code{int} are treated specially by the typechecker.
|
||||
The static type of an expression $e_1 * e_2$ where $e_1$ has static type \code{int} is \code{int} if the static type of $e_2$ is \code{int}, and \code{double} if the static type of $e_2$ is \code{double}.
|
||||
The static type of an expression $e_1 \% e_2$ where $e_1$ has static type \code{int} is \code{int} if the static type of $e_2$ is \code{int}, and \code{double} if the static type of $e_2$ is \code{double}.
|
||||
The static type of an expression \code{$e_1$ \~{}/ $e_2$} where $e_1$ has static type \code{int} is \code{int} if the static type of $e_2$ is \code{int}.
|
||||
|
||||
|
||||
\subsection{Unary Expressions}
|
||||
\LMLabel{unaryExpressions}
|
||||
|
||||
Reference in New Issue
Block a user