Skip to content

Commit 567d95f

Browse files
committed
Fix repltest
The fixed frontend dealiases less in the inferred types of i6474, which is a good thing.
1 parent 5aa3bf6 commit 567d95f

File tree

1 file changed

+5
-5
lines changed
  • compiler/test-resources/repl

1 file changed

+5
-5
lines changed

compiler/test-resources/repl/i6474

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ scala> object Foo2 { type T[+A] = [B] =>> (A, B) }
55
scala> object Foo3 { type T[+A] = [B] =>> [C] =>> (A, B) }
66
// defined object Foo3
77
scala> ((1, 2): Foo1.T[Int]): Foo1.T[Any]
8-
val res0: (Any, Int) = (1,2)
8+
val res0: Foo1.T[Any] = (1,2)
99
scala> ((1, 2): Foo2.T[Int][Int]): Foo2.T[Any][Int]
10-
val res1: (Any, Int) = (1,2)
10+
val res1: Foo2.T[Any][Int] = (1,2)
1111
scala> (1, 2): Foo3.T[Int][Int]
1212
-- [E056] Syntax Error: --------------------------------------------------------
1313
1 | (1, 2): Foo3.T[Int][Int]
1414
| ^^^^^^^^^^^^^^^^
1515
| Missing type parameter for Foo3.T[Int][Int]
1616
1 error found
1717
scala> ((1, 2): Foo3.T[Int][Int][Int]): Foo3.T[Any][Int][Int]
18-
val res2: (Any, Int) = (1,2)
18+
val res2: Foo3.T[Any][Int][Int] = (1,2)
1919
scala> object Foo3 { type T[A] = [B] =>> [C] =>> (A, B) }
2020
// defined object Foo3
2121
scala> ((1, 2): Foo3.T[Int][Int][Int])
22-
val res3: (Int, Int) = (1,2)
22+
val res3: Foo3.T[Int][Int][Int] = (1,2)
2323
scala> ((1, 2): Foo3.T[Int][Int][Int])
24-
val res4: (Int, Int) = (1,2)
24+
val res4: Foo3.T[Int][Int][Int] = (1,2)

0 commit comments

Comments
 (0)