Skip to content

Commit 7e27c2c

Browse files
committed
Update check file of i11637
1 parent a4c4767 commit 7e27c2c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tests/neg-custom-args/i11637.check

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
-- [E057] Type Mismatch Error: tests/neg-custom-args/i11637.scala:11:33 ------------------------------------------------
22
11 | var h = new HKT3_1[FunctorImpl](); // error // error
33
| ^
4-
| Type argument test2.FunctorImpl does not conform to upper bound [Generic2[T] <: Set[T]] =>> Any
4+
| Type argument test2.FunctorImpl does not conform to upper bound [Generic2[T <: String] <: Set[T]] =>> Any
55

66
Explanation
77
===========
88

99
I tried to show that
1010
test2.FunctorImpl
1111
conforms to
12-
[Generic2[T] <: Set[T]] =>> Any
12+
[Generic2[T <: String] <: Set[T]] =>> Any
1313
but the comparison trace ended with `false`:
1414

15-
==> test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any
16-
==> test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any (recurring)
17-
==> type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]]
18-
==> type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring)
15+
==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any
16+
==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any (recurring)
17+
==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]]
18+
==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring)
1919
==> [T <: String] =>> Set[T] <: Iterable
2020
==> [T <: String] =>> Set[T] <: Iterable (recurring)
2121
==> type bounds [] <: type bounds [ <: String]
@@ -30,31 +30,31 @@ but the comparison trace ended with `false`:
3030
<== type bounds [] <: type bounds [ <: String] = false
3131
<== [T <: String] =>> Set[T] <: Iterable (recurring) = false
3232
<== [T <: String] =>> Set[T] <: Iterable = false
33-
<== type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring) = false
34-
<== type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false
35-
<== test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any (recurring) = false
36-
<== test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any = false
33+
<== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring) = false
34+
<== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false
35+
<== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any (recurring) = false
36+
<== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any = false
3737

3838
The tests were made under the empty constraint
3939

4040
-- [E057] Type Mismatch Error: tests/neg-custom-args/i11637.scala:11:21 ------------------------------------------------
4141
11 | var h = new HKT3_1[FunctorImpl](); // error // error
4242
| ^
43-
| Type argument test2.FunctorImpl does not conform to upper bound [Generic2[T] <: Set[T]] =>> Any
43+
| Type argument test2.FunctorImpl does not conform to upper bound [Generic2[T <: String] <: Set[T]] =>> Any
4444

4545
Explanation
4646
===========
4747

4848
I tried to show that
4949
test2.FunctorImpl
5050
conforms to
51-
[Generic2[T] <: Set[T]] =>> Any
51+
[Generic2[T <: String] <: Set[T]] =>> Any
5252
but the comparison trace ended with `false`:
5353

54-
==> test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any
55-
==> test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any (recurring)
56-
==> type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]]
57-
==> type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring)
54+
==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any
55+
==> test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any (recurring)
56+
==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]]
57+
==> type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring)
5858
==> [T <: String] =>> Set[T] <: Iterable
5959
==> [T <: String] =>> Set[T] <: Iterable (recurring)
6060
==> type bounds [] <: type bounds [ <: String]
@@ -69,9 +69,9 @@ but the comparison trace ended with `false`:
6969
<== type bounds [] <: type bounds [ <: String] = false
7070
<== [T <: String] =>> Set[T] <: Iterable (recurring) = false
7171
<== [T <: String] =>> Set[T] <: Iterable = false
72-
<== type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring) = false
73-
<== type bounds [[T] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false
74-
<== test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any (recurring) = false
75-
<== test2.FunctorImpl <: [Generic2[T] <: Set[T]] =>> Any = false
72+
<== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] (recurring) = false
73+
<== type bounds [[T <: String] <: Set[T]] <: type bounds [[T] <: Iterable[T]] = false
74+
<== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any (recurring) = false
75+
<== test2.FunctorImpl <: [Generic2[T <: String] <: Set[T]] =>> Any = false
7676

7777
The tests were made under the empty constraint

0 commit comments

Comments
 (0)