You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/test-resources/repl/errmsgs
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,36 +5,30 @@ scala> val x: List[String] = List(1)
5
5
| ^
6
6
| found: Int(1)
7
7
| required: String
8
-
|
9
8
scala> val y: List[List[String]] = List(List(1))
10
9
1 | val y: List[List[String]] = List(List(1))
11
10
| ^
12
11
| found: Int(1)
13
12
| required: String
14
-
|
15
13
scala> val z: (List[String], List[Int]) = (List(1), List("a"))
16
14
1 | val z: (List[String], List[Int]) = (List(1), List("a"))
17
15
| ^
18
16
| found: Int(1)
19
17
| required: String
20
-
|
21
18
1 | val z: (List[String], List[Int]) = (List(1), List("a"))
22
19
| ^^^
23
20
| found: String("a")
24
21
| required: Int
25
-
|
26
22
scala> val a: Inv[String] = new Inv(new Inv(1))
27
23
1 | val a: Inv[String] = new Inv(new Inv(1))
28
24
| ^^^^^^^^^^
29
25
| found: Inv[Int]
30
26
| required: String
31
-
|
32
27
scala> val b: Inv[String] = new Inv(1)
33
28
1 | val b: Inv[String] = new Inv(1)
34
29
| ^
35
30
| found: Int(1)
36
31
| required: String
37
-
|
38
32
scala> abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; }
39
33
1 | abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; }
0 commit comments