forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi13026.check
18 lines (18 loc) · 910 Bytes
/
i13026.check
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- [E007] Type Mismatch Error: tests/neg-custom-args/i13026.scala:1:13 -------------------------------------------------
1 |val x: Int = "not an int" // error
| ^^^^^^^^^^^^
| Found: ("not an int" : String)
| Required: Int
|
| longer explanation available when compiling with `-explain`
-- [E007] Type Mismatch Error: tests/neg-custom-args/i13026.scala:2:13 -------------------------------------------------
2 |val y: Int = "not an int" // error
| ^^^^^^^^^^^^
| Found: ("not an int" : String)
| Required: Int
|
| longer explanation available when compiling with `-explain`
-- [E008] Not Found Error: tests/neg-custom-args/i13026.scala:3:20 -----------------------------------------------------
3 |def foo(x: Any) = x.foo // error
| ^^^^^
| value foo is not a member of Any