File tree 1 file changed +19
-3
lines changed 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
-- [E007] Type Mismatch Error: tests/neg-custom-args/hidden-type-errors/Test.scala:6:24 --------------------------------
2
- 6 | val x = X.doSomething("XXX")
2
+ 6 | val x = X.doSomething("XXX") // error
3
3
| ^^^^^^^^^^^^^^^^^^^^
4
4
| Found: String
5
5
| Required: Int
6
6
| This location contains code that was inlined from Test.scala:6
7
7
8
- inlined at Test.scala:6:
8
+ Explanation
9
+ ===========
9
10
10
- 1 error found
11
+ Tree: t12717.A.bar("XXX")
12
+
13
+ I tried to show that
14
+ String
15
+ conforms to
16
+ Int
17
+ but the comparison trace ended with `false`:
18
+
19
+ ==> String <: Int
20
+ ==> String <: Int (recurring)
21
+ ==> String <: Int (recurring)
22
+ <== String <: Int (recurring) = false
23
+ <== String <: Int (recurring) = false
24
+ <== String <: Int = false
11
25
26
+ The tests were made under the empty constraint
12
27
28
+ 1 error found
You can’t perform that action at this time.
0 commit comments