Skip to content

Commit 200ab6f

Browse files
committed
First batch of neg -> warn test changes
[Cherry-picked 3754628][modified]
1 parent 0069bd3 commit 200ab6f

File tree

129 files changed

+858
-928
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+858
-928
lines changed

tests/neg-deep-subtype/i3324.scala

-6
This file was deleted.

tests/neg/i10247.scala

-28
This file was deleted.

tests/neg/i10930.scala

-15
This file was deleted.

tests/neg/i10994.scala

-4
This file was deleted.

tests/neg/i11022.check

-20
This file was deleted.

tests/neg/i11022.scala

-13
This file was deleted.

tests/neg/i11225b.check

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Error: tests/neg/i11225b.scala:6:26 ---------------------------------------------------------------------------------
2+
6 | private var cached: A = _ // error
3+
| ^
4+
| `= _` has been deprecated; use `= uninitialized` instead.
5+
| `uninitialized` can be imported with `scala.compiletime.uninitialized`.

tests/neg/i11225b.scala

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ class Memo[A](x: => A):
1010
known = true
1111
cached = x
1212
cached
13+

tests/neg/i11333.check

-30
This file was deleted.

tests/neg/i11333.scala

-14
This file was deleted.

tests/neg/i11963a.scala

-3
This file was deleted.

tests/neg/i11963b.scala

-3
This file was deleted.

tests/neg/i11963c.scala

-8
This file was deleted.

tests/neg/i12597.scala

-7
This file was deleted.

tests/neg/i13440.scala

-9
This file was deleted.

tests/neg/i14705.scala

-5
This file was deleted.

tests/neg/i15474.scala

-18
This file was deleted.

tests/neg/i15503h.scala

-20
This file was deleted.

tests/neg/i15662.scala

-16
This file was deleted.

tests/neg/i17613a.scala

-23
This file was deleted.

tests/neg/i18722.scala

-9
This file was deleted.

tests/neg/i19334.check

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
-- [E081] Type Error: tests/neg/i19334.scala:6:4 -----------------------------------------------------------------------
22
6 | f(_) // error was OOM formatting TypeVar(TypeParamRef(T)) when offering explanations
33
| ^
4-
| Missing parameter type
4+
| Could not infer type for parameter _$1 of anonymous function
55
|
6-
| I could not infer the type of the parameter _$1
7-
| in expanded function:
8-
| _$1 => f(_$1)
9-
| Expected type for the whole anonymous function:
10-
| T
6+
| In expanded function:
7+
| _$1 => f(_$1)
8+
|
9+
| Expected type for the whole anonymous function: T
1110
|
1211
| where: T is a type variable

tests/neg/i2333.scala

-11
This file was deleted.

tests/neg/i2673.scala

-6
This file was deleted.

tests/neg/i2673b.scala

-6
This file was deleted.

tests/neg/i2673c.scala

-8
This file was deleted.

tests/neg/i4812.check

-42
This file was deleted.

tests/neg/i4936b.scala

-3
This file was deleted.

tests/neg/i5013.scala

-11
This file was deleted.

0 commit comments

Comments
 (0)