aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Applications.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Applications.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala
index aa2227d63..2c1384524 100644
--- a/src/dotty/tools/dotc/typer/Applications.scala
+++ b/src/dotty/tools/dotc/typer/Applications.scala
@@ -562,7 +562,7 @@ trait Applications extends Compatibility { self: Typer =>
ttree.tpe match {
case alias: TypeRef if alias.symbol.isAliasType =>
companionRef(alias) match {
- case companion: TermRef => return untpd.ref(companion)
+ case companion: TermRef => return untpd.ref(companion) withPos tree.pos
case _ =>
}
case _ =>