aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-06-26 13:17:55 +0200
committerMartin Odersky <odersky@gmail.com>2014-06-26 13:17:55 +0200
commitf600df414d01f44604f47122fe00199842d02baf (patch)
tree2086922b50dc3d92aa5aa5170d6e0162726f395d /src/dotty/tools/dotc/core/Types.scala
parentf823e422478232aa083f3510fa8ce4914ec99d53 (diff)
downloaddotty-f600df414d01f44604f47122fe00199842d02baf.tar.gz
dotty-f600df414d01f44604f47122fe00199842d02baf.tar.bz2
dotty-f600df414d01f44604f47122fe00199842d02baf.zip
Improved documentation
Added explanations where suggested by Adriaan in his review.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index f3e10c5b0..4885b30d8 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -654,7 +654,8 @@ object Types {
*
* P { ... type T = / += / -= U ... } # T
*
- * to just U
+ * to just U. Does not perform the reduction if the resulting type would contain
+ * a reference to the "this" of the current refined type.
*/
def lookupRefined(name: Name)(implicit ctx: Context): Type = stripTypeVar match {
case pre: RefinedType =>