Skip to content

Commit

Permalink
Update some ranges in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Apr 16, 2024
1 parent 1fcdc3e commit ad07cf3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions test/files/neg/t12735a.check
@@ -1,6 +1,6 @@
[ERROR] [RangePosition(t12735a.scala, 97, 97, 98)]: class B needs to be abstract.
[ERROR] [RangePosition(t12735a.scala, 104, 104, 105)]: class B needs to be abstract.
Missing implementation for member of trait A:
def x: String = ???

[ERROR] [RangePosition(t12735a.scala, 123, 123, 127)]: covariant type T occurs in contravariant position in type T of value t
[ERROR] [RangePosition(t12735a.scala, 130, 130, 134)]: covariant type T occurs in contravariant position in type T of value t
2 errors
8 changes: 4 additions & 4 deletions test/files/neg/t12735b.check
@@ -1,7 +1,7 @@
[WARNING] [RangePosition(t12735b.scala, 112, 112, 113)]: private method m in class UnusedMethod is never used
[WARNING] [RangePosition(t12735b.scala, 216, 216, 217)]: private object X in object UnusedObject is never used
[WARNING] [RangePosition(t12735b.scala, 228, 228, 253)]: side-effecting nullary methods are discouraged: suggest defining as `def stuff to create a range()` instead
[WARNING] [RangePosition(t12735b.scala, 128, 132, 135)]: match may not be exhaustive.
[WARNING] [RangePosition(t12735b.scala, 119, 119, 120)]: private method m in class UnusedMethod is never used
[WARNING] [RangePosition(t12735b.scala, 223, 223, 224)]: private object X in object UnusedObject is never used
[WARNING] [RangePosition(t12735b.scala, 235, 235, 260)]: side-effecting nullary methods are discouraged: suggest defining as `def stuff to create a range()` instead
[WARNING] [RangePosition(t12735b.scala, 135, 139, 142)]: match may not be exhaustive.
It would fail on the following input: List(_)
[ERROR] [NoPosition]: No warnings can be incurred under -Werror.
4 warnings
Expand Down
30 changes: 15 additions & 15 deletions test/files/neg/t12735c.check
@@ -1,20 +1,20 @@
[WARNING] [RangePosition(t12735c.scala, 109, 109, 110)]: private val v in class UnusedVal is never used
[WARNING] [RangePosition(t12735c.scala, 207, 207, 208)]: private val v in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 210, 210, 211)]: private val w in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 213, 213, 214)]: private val x in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 216, 216, 217)]: private val y in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 219, 219, 220)]: private val z in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 319, 319, 320)]: private val v in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 322, 322, 323)]: private val w in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 325, 325, 326)]: private val x in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 328, 328, 329)]: private val y in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 331, 331, 332)]: private val z in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 424, 424, 427)]: private type int in object UnusedAlias is never used
[WARNING] [RangePosition(t12735c.scala, 125, 129, 132)]: match may not be exhaustive.
[WARNING] [RangePosition(t12735c.scala, 116, 116, 117)]: private val v in class UnusedVal is never used
[WARNING] [RangePosition(t12735c.scala, 214, 214, 215)]: private val v in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 217, 217, 218)]: private val w in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 220, 220, 221)]: private val x in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 223, 223, 224)]: private val y in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 226, 226, 227)]: private val z in class UnusedVals is never used
[WARNING] [RangePosition(t12735c.scala, 326, 326, 327)]: private val v in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 329, 329, 330)]: private val w in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 332, 332, 333)]: private val x in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 335, 335, 336)]: private val y in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 338, 338, 339)]: private val z in class UnusedIdents is never used
[WARNING] [RangePosition(t12735c.scala, 431, 431, 434)]: private type int in object UnusedAlias is never used
[WARNING] [RangePosition(t12735c.scala, 132, 136, 139)]: match may not be exhaustive.
It would fail on the following input: List(_)
[WARNING] [source-t12735c.scala,line-12,offset=239]: match may not be exhaustive.
[WARNING] [source-t12735c.scala,line-12,offset=246]: match may not be exhaustive.
It would fail on the following input: List(_)
[WARNING] [source-t12735c.scala,line-19,offset=343]: match may not be exhaustive.
[WARNING] [source-t12735c.scala,line-19,offset=350]: match may not be exhaustive.
It would fail on the following input: List(_)
[ERROR] [NoPosition]: No warnings can be incurred under -Werror.
15 warnings
Expand Down
6 changes: 3 additions & 3 deletions test/files/run/macro-openmacros.check
@@ -1,3 +1,3 @@
List(MacroContext(foo@source-Test_2.scala,line-3,offset=63 +0))
List(MacroContext(foo@source-Test_2.scala,line-3,offset=63 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=63 +0))
List(MacroContext(foo@source-Test_2.scala,line-3,offset=63 +2), MacroContext(foo@source-Test_2.scala,line-3,offset=63 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=63 +0))
List(MacroContext(foo@source-Test_2.scala,line-3,offset=70 +0))
List(MacroContext(foo@source-Test_2.scala,line-3,offset=70 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=70 +0))
List(MacroContext(foo@source-Test_2.scala,line-3,offset=70 +2), MacroContext(foo@source-Test_2.scala,line-3,offset=70 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=70 +0))

0 comments on commit ad07cf3

Please sign in to comment.