11-- [E057] Type Mismatch Error: tests/neg-custom-args/i11637.scala:11:33 ------------------------------------------------
2211 | 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
66Explanation
77===========
88
99I tried to show that
1010 test2.FunctorImpl
1111conforms to
12- [Generic2[T] <: Set[T]] =>> Any
12+ [Generic2[T <: String ] <: Set[T]] =>> Any
1313but 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
3838The tests were made under the empty constraint
3939
4040-- [E057] Type Mismatch Error: tests/neg-custom-args/i11637.scala:11:21 ------------------------------------------------
414111 | 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
4545Explanation
4646===========
4747
4848I tried to show that
4949 test2.FunctorImpl
5050conforms to
51- [Generic2[T] <: Set[T]] =>> Any
51+ [Generic2[T <: String ] <: Set[T]] =>> Any
5252but 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
7777The tests were made under the empty constraint
0 commit comments