-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trailing comma Ident's span (#20445)
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- [E006] Not Found Error: tests/neg/i16872.scala:8:6 ------------------------------------------------------------------ | ||
8 | aa, // error | ||
| ^^ | ||
| Not found: aa | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E006] Not Found Error: tests/neg/i16872.scala:9:6 ------------------------------------------------------------------ | ||
9 | bb, // error | ||
| ^^ | ||
| Not found: bb | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E006] Not Found Error: tests/neg/i16872.scala:10:6 ----------------------------------------------------------------- | ||
10 | cc, // error | ||
| ^^ | ||
| Not found: cc | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E006] Not Found Error: tests/neg/i16872.scala:16:6 ----------------------------------------------------------------- | ||
16 | dd, // error | ||
| ^^ | ||
| Not found: dd | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E006] Not Found Error: tests/neg/i16872.scala:17:6 ----------------------------------------------------------------- | ||
17 | ee, // error | ||
| ^^ | ||
| Not found: ee - did you mean eq? or perhaps ne? | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E006] Not Found Error: tests/neg/i16872.scala:18:6 ----------------------------------------------------------------- | ||
18 | ff, // error | ||
| ^^ | ||
| Not found: ff | ||
| | ||
| longer explanation available when compiling with `-explain` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Using a checkfile to verify where the carets point to. | ||
// Originally they were pointing to "cc," and "ff," | ||
// including the trailing comma | ||
|
||
class Test: | ||
def t1 = | ||
( | ||
aa, // error | ||
bb, // error | ||
cc, // error | ||
) | ||
|
||
def meth(a: Int, b: Int, c: Int) = a + b + c | ||
def t2 = | ||
meth( | ||
dd, // error | ||
ee, // error | ||
ff, // error | ||
) |