Skip to content

Commit

Permalink
Nopos-warn in vulpix & Move warn tests form tests/neg to tests/warn: …
Browse files Browse the repository at this point in the history
…Batch 1 (#19242)

Adds functionality to vulpix that allows putting nopos-warns in comments
& First batch of tests moved from tests/neg to tests/warn.
PR 2/5 (merge consecutively, per [Nicolas'
suggestion](#18829 (review))

Split up version of #18829
  • Loading branch information
szymon-rd authored Jan 11, 2024
2 parents fa448fb + 3754628 commit 36831b8
Show file tree
Hide file tree
Showing 137 changed files with 872 additions and 849 deletions.
6 changes: 0 additions & 6 deletions tests/neg-deep-subtype/i3324.scala

This file was deleted.

28 changes: 0 additions & 28 deletions tests/neg/i10247.scala

This file was deleted.

15 changes: 0 additions & 15 deletions tests/neg/i10930.scala

This file was deleted.

4 changes: 0 additions & 4 deletions tests/neg/i10994.scala

This file was deleted.

20 changes: 0 additions & 20 deletions tests/neg/i11022.check

This file was deleted.

13 changes: 0 additions & 13 deletions tests/neg/i11022.scala

This file was deleted.

6 changes: 6 additions & 0 deletions tests/neg/i11225b.check
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.
3 changes: 2 additions & 1 deletion tests/neg/i11225b.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using options -source future -deprecation -Xfatal-warnings
//> using options -source future -deprecation

import compiletime.uninitialized

Expand All @@ -10,3 +10,4 @@ class Memo[A](x: => A):
known = true
cached = x
cached

30 changes: 0 additions & 30 deletions tests/neg/i11333.check

This file was deleted.

14 changes: 0 additions & 14 deletions tests/neg/i11333.scala

This file was deleted.

3 changes: 0 additions & 3 deletions tests/neg/i11963a.scala

This file was deleted.

3 changes: 0 additions & 3 deletions tests/neg/i11963b.scala

This file was deleted.

8 changes: 0 additions & 8 deletions tests/neg/i11963c.scala

This file was deleted.

7 changes: 0 additions & 7 deletions tests/neg/i12597.scala

This file was deleted.

9 changes: 0 additions & 9 deletions tests/neg/i13440.scala

This file was deleted.

5 changes: 0 additions & 5 deletions tests/neg/i14705.scala

This file was deleted.

16 changes: 0 additions & 16 deletions tests/neg/i15474.scala

This file was deleted.

20 changes: 0 additions & 20 deletions tests/neg/i15503h.scala

This file was deleted.

23 changes: 0 additions & 23 deletions tests/neg/i17613a.scala

This file was deleted.

9 changes: 0 additions & 9 deletions tests/neg/i18722.scala

This file was deleted.

6 changes: 0 additions & 6 deletions tests/neg/i18862-3.4.scala

This file was deleted.

6 changes: 0 additions & 6 deletions tests/neg/i18862-future-migration.scala

This file was deleted.

7 changes: 0 additions & 7 deletions tests/neg/i18867-3.4.scala

This file was deleted.

5 changes: 0 additions & 5 deletions tests/neg/i18867.scala

This file was deleted.

11 changes: 0 additions & 11 deletions tests/neg/i2333.scala

This file was deleted.

6 changes: 0 additions & 6 deletions tests/neg/i2673.scala

This file was deleted.

6 changes: 0 additions & 6 deletions tests/neg/i2673b.scala

This file was deleted.

8 changes: 0 additions & 8 deletions tests/neg/i2673c.scala

This file was deleted.

42 changes: 0 additions & 42 deletions tests/neg/i4812.check

This file was deleted.

3 changes: 0 additions & 3 deletions tests/neg/i4936b.scala

This file was deleted.

11 changes: 0 additions & 11 deletions tests/neg/i5013.scala

This file was deleted.

5 changes: 0 additions & 5 deletions tests/neg/i6190b.scala

This file was deleted.

Loading

0 comments on commit 36831b8

Please sign in to comment.