diff options
author | Martin Odersky <odersky@gmail.com> | 2017-01-04 08:57:48 +0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-01-04 08:57:58 +0700 |
commit | 0ca3728c6c4eb77288958c5e69b73e9bc6ea7c8c (patch) | |
tree | 52fdc767c3ec21892cbe6f1f709187885725b6c8 /compiler | |
parent | 39c27b6a8aaa2c7303db54011082246ada06c0a0 (diff) | |
download | dotty-0ca3728c6c4eb77288958c5e69b73e9bc6ea7c8c.tar.gz dotty-0ca3728c6c4eb77288958c5e69b73e9bc6ea7c8c.tar.bz2 dotty-0ca3728c6c4eb77288958c5e69b73e9bc6ea7c8c.zip |
Fix #1867: Set position of empty refined types
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 |
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 fe158dfe2..63f3a59d6 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 |