Skip to content

Commit 0484e65

Browse files
committed
Fix check files
[Cherry-picked cd9a7c5][modified]
1 parent e889472 commit 0484e65

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

tests/neg/i21543.check

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-- [E007] Type Mismatch Error: tests/neg/i21543.scala:10:15 ------------------------------------------------------------
2+
10 | Cmd(List("1", "2")) // error // error
3+
| ^^^
4+
| Found: ("1" : String)
5+
| Required: Event
6+
|
7+
| Note that I could not resolve reference Event.
8+
| Event is a private member in a base class
9+
|
10+
|
11+
| longer explanation available when compiling with `-explain`
12+
-- [E007] Type Mismatch Error: tests/neg/i21543.scala:10:20 ------------------------------------------------------------
13+
10 | Cmd(List("1", "2")) // error // error
14+
| ^^^
15+
| Found: ("2" : String)
16+
| Required: Event
17+
|
18+
| Note that I could not resolve reference Event.
19+
| Event is a private member in a base class
20+
|
21+
|
22+
| longer explanation available when compiling with `-explain`

tests/neg/i21543.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object CompilerCrash {
77

88
new Scope {
99
val commands = List(
10-
Cmd(List("1", "2"))
10+
Cmd(List("1", "2")) // error // error
1111
)
1212
}
1313
}

0 commit comments

Comments
 (0)