We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44e6d0f + 8c6231a commit e3bc344Copy full SHA for e3bc344
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -80,7 +80,7 @@ object Parsers {
80
* If `t` does not have a span yet, set its span to the given one.
81
*/
82
def atSpan[T <: Positioned](span: Span)(t: T): T =
83
- if (t.span.isSourceDerived) t else t.withSpan(span)
+ if (t.span.isSourceDerived) t else t.withSpan(span.union(t.span))
84
85
def atSpan[T <: Positioned](start: Offset, point: Offset, end: Offset)(t: T): T =
86
atSpan(Span(start, end, point))(t)
tests/neg/i6035.scala
@@ -0,0 +1 @@
1
+type i1 <: i1 = ; } // error // error
0 commit comments