aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-01-07 15:19:06 +0100
committerGitHub <noreply@github.com>2017-01-07 15:19:06 +0100
commita909c2fc9e95a227553ce3b0decc3aeec28b5d57 (patch)
tree7dccc66be4a6ad9f13d572c86b66024a1e5f4a9c /compiler/src/dotty/tools/dotc/typer/Typer.scala
parentbf9888edcd96f40f11260e6ad874eb27382f77ba (diff)
parent0ca3728c6c4eb77288958c5e69b73e9bc6ea7c8c (diff)
downloaddotty-a909c2fc9e95a227553ce3b0decc3aeec28b5d57.tar.gz
dotty-a909c2fc9e95a227553ce3b0decc3aeec28b5d57.tar.bz2
dotty-a909c2fc9e95a227553ce3b0decc3aeec28b5d57.zip
Merge pull request #1887 from dotty-staging/fix-#1867
Fix #1867: Set position of empty refined types
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/typer/Typer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala
index 6dd3f45fc..b70a51d1e 100644
--- a/compiler/src/dotty/tools/dotc/typer/Typer.scala
+++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1030,7 +1030,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
def typedRefinedTypeTree(tree: untpd.RefinedTypeTree)(implicit ctx: Context): RefinedTypeTree = track("typedRefinedTypeTree") {
val tpt1 = if (tree.tpt.isEmpty) TypeTree(defn.ObjectType) else typedAheadType(tree.tpt)
- val refineClsDef = desugar.refinedTypeToClass(tpt1, tree.refinements)
+ val refineClsDef = desugar.refinedTypeToClass(tpt1, tree.refinements).withPos(tree.pos)
val refineCls = createSymbol(refineClsDef).asClass
val TypeDef(_, impl: Template) = typed(refineClsDef)
val refinements1 = impl.body