-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First batch of neg -> warn test changes
- Loading branch information
Showing
138 changed files
with
915 additions
and
881 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Error: tests/neg/i11225b.scala:6:26 --------------------------------------------------------------------------------- | ||
6 | private var cached: A = _ // error | ||
| ^ | ||
| `= _` has been deprecated; use `= uninitialized` instead. | ||
| `uninitialized` can be imported with `scala.compiletime.uninitialized`. | ||
| This construct can be rewritten automatically under -rewrite -source 3.4-migration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
-- Error: tests/neg/i17612b/i17612b.scala:21:15 ------------------------------------------------------------------------ | ||
21 | class Derived(x : Int, x3: Int, y: Int, z2: Int) extends BaseB, BaseC(x3), Base(x, y + 1, z2): // error // error / for x, y translated to private[this] x field & shadowing var Base.x, Base.y | ||
-- Warning: tests/neg/i17612b/i17612b.scala:21:15 ---------------------------------------------------------------------- | ||
21 | class Derived(x : Int, x3: Int, y: Int, z2: Int) extends BaseB, BaseC(x3), Base(x, y + 1, z2): // warn // warn / for x, y translated to private[this] x field & shadowing var Base.x, Base.y | ||
| ^ | ||
| value x in class Derived shadows field x inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:21:33 ------------------------------------------------------------------------ | ||
21 | class Derived(x : Int, x3: Int, y: Int, z2: Int) extends BaseB, BaseC(x3), Base(x, y + 1, z2): // error // error / for x, y translated to private[this] x field & shadowing var Base.x, Base.y | ||
-- Warning: tests/neg/i17612b/i17612b.scala:21:33 ---------------------------------------------------------------------- | ||
21 | class Derived(x : Int, x3: Int, y: Int, z2: Int) extends BaseB, BaseC(x3), Base(x, y + 1, z2): // warn // warn / for x, y translated to private[this] x field & shadowing var Base.x, Base.y | ||
| ^ | ||
| value y in class Derived shadows field y inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:23:2 ------------------------------------------------------------------------- | ||
23 | private val shadowed2 = 2 + 2 // error (In Scala 2 we cannot do that got the warning) | ||
-- Warning: tests/neg/i17612b/i17612b.scala:23:2 ----------------------------------------------------------------------- | ||
23 | private val shadowed2 = 2 + 2 // warn (In Scala 2 we cannot do that got the warning) | ||
| ^ | ||
| value shadowed2 in class Derived shadows field shadowed2 inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:24:2 ------------------------------------------------------------------------- | ||
24 | private[this] val shadowed3 = 3 + 3 // error | ||
-- Warning: tests/neg/i17612b/i17612b.scala:24:2 ----------------------------------------------------------------------- | ||
24 | private[this] val shadowed3 = 3 + 3 // warn | ||
| ^ | ||
| value shadowed3 in class Derived shadows field shadowed3 inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:26:2 ------------------------------------------------------------------------- | ||
26 | private val shadowed5 = 5 + 5 // error | ||
-- Warning: tests/neg/i17612b/i17612b.scala:26:2 ----------------------------------------------------------------------- | ||
26 | private val shadowed5 = 5 + 5 // warn | ||
| ^ | ||
| value shadowed5 in class Derived shadows field shadowed5 inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:41:20 ------------------------------------------------------------------------ | ||
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // error // error // error | ||
-- Warning: tests/neg/i17612b/i17612b.scala:41:20 ---------------------------------------------------------------------- | ||
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // warn // warn // warn | ||
| ^ | ||
| value x in class UnderDerived shadows field x inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:41:28 ------------------------------------------------------------------------ | ||
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // error // error // error | ||
-- Warning: tests/neg/i17612b/i17612b.scala:41:28 ---------------------------------------------------------------------- | ||
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // warn // warn // warn | ||
| ^ | ||
| value y in class UnderDerived shadows field y inherited from trait Base | ||
-- Error: tests/neg/i17612b/i17612b.scala:41:36 ------------------------------------------------------------------------ | ||
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // error // error // error | ||
-- Warning: tests/neg/i17612b/i17612b.scala:41:36 ---------------------------------------------------------------------- | ||
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // warn // warn // warn | ||
| ^ | ||
| value z in class UnderDerived shadows field z inherited from trait Base | ||
No warnings can be incurred under -Werror. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.