mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:17:14 +00:00
Adjusted type variable name conflicts to match class member rules
Change-Id: I4e6c20fd255f349a295a771fcaca5b2db6d868cb Reviewed-on: https://dart-review.googlesource.com/70508 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
parent
be0969b249
commit
9085009f2a
|
@ -1357,8 +1357,13 @@ The rules of inheritance determine what members a class has.
|
|||
\end{dartCode}
|
||||
|
||||
\LMHash{}
|
||||
It is a compile-time error if a class $C$ declares a member with the same name as $C$.
|
||||
It is a compile-time error if a generic class declares a type variable with the same name as the class or any of its members or constructors.
|
||||
It is a compile-time error if a class named $C$ declares
|
||||
a member with basename (\ref{classMemberConflicts}) $C$.
|
||||
If a generic class named $G$ declares a type variable named $X$,
|
||||
it is a compile-time error
|
||||
if $X$ is equal to $G$,
|
||||
if $G$ has a member whose basename is $X$,
|
||||
and if $G$ has a constructor named \code{$G$.$X$}.
|
||||
|
||||
|
||||
\subsection{Instance Methods}
|
||||
|
|
Loading…
Reference in a new issue