aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index 57aca3c5e..33d108540 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -719,8 +719,11 @@ object Types {
case _ => Nil
}
- /** A prefix-less termRef to a new skolem symbol that has the given type as info */
- def narrow(implicit ctx: Context): TermRef = TermRef(NoPrefix, ctx.newSkolem(this))
+ /** A prefix-less refined this or a termRef to a new skolem symbol
+ * that has the given type as info
+ */
+ def narrow(implicit ctx: Context): TermRef =
+ TermRef(NoPrefix, ctx.newSkolem(this))
// ----- Normalizing typerefs over refined types ----------------------------