File tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/typer
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
1030
1030
1031
1031
def typedRefinedTypeTree (tree : untpd.RefinedTypeTree )(implicit ctx : Context ): RefinedTypeTree = track(" typedRefinedTypeTree" ) {
1032
1032
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)
1034
1034
val refineCls = createSymbol(refineClsDef).asClass
1035
1035
val TypeDef (_, impl : Template ) = typed(refineClsDef)
1036
1036
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