Skip to content

Commit fcd5a23

Browse files
committed
Update check files
1 parent 93758e5 commit fcd5a23

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

tests/neg/polymorphic-erased-functions-types.check

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
4 |def t1b: [T] => (erased t: T) => Unit = [T] => (t: T) => () // error
1010
| ^^^^^^^^^^^^^^^^^^^
1111
| Found: [T] => (t: T) => Unit
12-
| Required: [T] => (erased t: T) => Unit
12+
| Required: [T] => (erased t²: T) => Unit
13+
|
14+
| where: t is a reference to a value parameter
15+
| t² is a reference to a value parameter
1316
|
1417
| longer explanation available when compiling with `-explain`
1518
-- [E007] Type Mismatch Error: tests/neg/polymorphic-erased-functions-types.scala:6:36 ---------------------------------
@@ -23,6 +26,11 @@
2326
7 |def t2b: [T, U] => (t: T, erased u: U) => Unit = [T, U] => (t: T, u: U) => () // error
2427
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2528
| Found: [T, U] => (t: T, u: U) => Unit
26-
| Required: [T, U] => (t: T, erased u: U) => Unit
29+
| Required: [T, U] => (t²: T, erased u²: U) => Unit
30+
|
31+
| where: t is a reference to a value parameter
32+
| t² is a reference to a value parameter
33+
| u is a reference to a value parameter
34+
| u² is a reference to a value parameter
2735
|
2836
| longer explanation available when compiling with `-explain`

tests/neg/polymorphic-functions1.check

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
1 |val f: [T] => (x: T) => x.type = [T] => (x: Int) => x // error
33
| ^^^^^^^^^^^^^^^^^^^^
44
| Found: [T] => (x: Int) => x.type
5-
| Required: [T] => (x: T) => x.type
5+
| Required: [T] => (x²: T) => x².type
6+
|
7+
| where: x is a reference to a value parameter
8+
| x² is a reference to a value parameter
69
|
710
| longer explanation available when compiling with `-explain`

0 commit comments

Comments
 (0)