File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1030,7 +1030,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
10301030
10311031 def typedRefinedTypeTree (tree : untpd.RefinedTypeTree )(implicit ctx : Context ): RefinedTypeTree = track(" typedRefinedTypeTree" ) {
10321032 val tpt1 = if (tree.tpt.isEmpty) TypeTree (defn.ObjectType ) else typedAheadType(tree.tpt)
1033- val refineClsDef = desugar.refinedTypeToClass(tpt1, tree.refinements)
1033+ val refineClsDef = desugar.refinedTypeToClass(tpt1, tree.refinements).withPos(tree.pos)
10341034 val refineCls = createSymbol(refineClsDef).asClass
10351035 val TypeDef (_, impl : Template ) = typed(refineClsDef)
10361036 val refinements1 = impl.body
Original file line number Diff line number Diff line change 1+ trait B {
2+ def f1 : {}
3+ }
You can’t perform that action at this time.
0 commit comments