forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
130 additions
and
5 deletions.
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
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,76 @@ | ||
-- [E100] Syntax Error: tests/neg/i17123.scala:7:2 --------------------------------------------------------------------- | ||
7 | m1 // error | ||
| ^^ | ||
| method m1 in object ConfusingErrorMessage must be called with () argument | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:9:2 --------------------------------------------------------------------- | ||
9 | m2 // error | ||
| ^^ | ||
| missing argument list for method m2 in object ConfusingErrorMessage | ||
| method m2 must be called with arguments ()() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:10:4 -------------------------------------------------------------------- | ||
10 | m2() // error | ||
| ^^^^ | ||
| missing argument list for method m2 in object ConfusingErrorMessage | ||
| method m2 must be called with arguments ()() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:11:2 -------------------------------------------------------------------- | ||
11 | m3 // error | ||
| ^^ | ||
| missing argument list for method m3 in object ConfusingErrorMessage | ||
| method m3 must be called with arguments ()()() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:12:4 -------------------------------------------------------------------- | ||
12 | m3() // error | ||
| ^^^^ | ||
| missing argument list for method m3 in object ConfusingErrorMessage | ||
| method m3 must be called with arguments ()()() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:13:6 -------------------------------------------------------------------- | ||
13 | m3()() // error | ||
| ^^^^^^ | ||
| missing argument list for method m3 in object ConfusingErrorMessage | ||
| method m3 must be called with arguments ()()() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:15:2 -------------------------------------------------------------------- | ||
15 | f3 // error | ||
| ^^ | ||
| missing argument list for method f3 in object ConfusingErrorMessage | ||
| method f3 must be called with arguments ()(i: Int)() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:16:2 -------------------------------------------------------------------- | ||
16 | f3() // error | ||
| ^^^^ | ||
| missing argument list for method f3 in object ConfusingErrorMessage | ||
| method f3 must be called with arguments ()(i: Int)() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:17:6 -------------------------------------------------------------------- | ||
17 | f3()(2) // error | ||
| ^^^^^^^ | ||
| missing argument list for method f3 in object ConfusingErrorMessage | ||
| method f3 must be called with arguments ()(i: Int)() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:19:2 -------------------------------------------------------------------- | ||
19 | i3 // error | ||
| ^^ | ||
| missing argument list for method i3 in object ConfusingErrorMessage | ||
| method i3 must be called with arguments ()() | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E177] Syntax Error: tests/neg/i17123.scala:20:2 -------------------------------------------------------------------- | ||
20 | i3() // error | ||
| ^^^^ | ||
| missing argument list for method i3 in object ConfusingErrorMessage | ||
| method i3 must be called with arguments ()() | ||
| | ||
| 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,22 @@ | ||
object ConfusingErrorMessage { | ||
def m1() = () | ||
def m2()() = () | ||
def m3()()() = () | ||
def f3()(i: Int)() = () | ||
def i3()(using d: DummyImplicit)() = () | ||
m1 // error | ||
m1() | ||
m2 // error | ||
m2() // error | ||
m3 // error | ||
m3() // error | ||
m3()() // error | ||
m3()()() | ||
f3 // error | ||
f3() // error | ||
f3()(2) // error | ||
f3()(2)() | ||
i3 // error | ||
i3() // error | ||
i3()() | ||
} |