-
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.
Create errorTermTrees for more missing arguments to Apply nodes.
- Loading branch information
Showing
18 changed files
with
112 additions
and
66 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,3 @@ | ||
object Test: | ||
case class Widget(name: String, other: Int = 5) | ||
Widget(name = "foo", // error // error |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class A[T] | ||
object o { | ||
// Testing compiler crash, this test should be modified when named type argument are completely implemented | ||
val x: A[T=Int, T=Int] = ??? // error: ']' expected, but '=' found | ||
val x: A[T=Int, T=Int] = ??? // error: ']' expected, but '=' found // error | ||
} |
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,8 @@ | ||
-- [E040] Syntax Error: tests/neg/t1625.scala:2:20 --------------------------------------------------------------------- | ||
2 | def foo(x: String*, y: String*, c: String*): Int // error: an identifier expected, but ',' found // error: an identifier expected, but ',' found | ||
| ^ | ||
| an identifier expected, but ',' found | ||
-- [E040] Syntax Error: tests/neg/t1625.scala:2:32 --------------------------------------------------------------------- | ||
2 | def foo(x: String*, y: String*, c: String*): Int // error: an identifier expected, but ',' found // error: an identifier expected, but ',' found | ||
| ^ | ||
| an identifier expected, but ',' found |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
trait T3 { | ||
def foo(x: String*, y: String*, c: String*): Int // error: an identifier expected, but ',' found | ||
} | ||
def foo(x: String*, y: String*, c: String*): Int // error: an identifier expected, but ',' found // error: an identifier expected, but ',' found | ||
} |
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,44 @@ | ||
-- [E032] Syntax Error: tests/neg/t5702-neg-bad-and-wild.scala:10:22 --------------------------------------------------- | ||
10 | case List(1, _*,) => // error: pattern expected // error | ||
| ^ | ||
| pattern expected | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E032] Syntax Error: tests/neg/t5702-neg-bad-and-wild.scala:12:23 --------------------------------------------------- | ||
12 | case List(1, _*3,) => // error: pattern expected // error // error | ||
| ^ | ||
| pattern expected | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E032] Syntax Error: tests/neg/t5702-neg-bad-and-wild.scala:15:18 --------------------------------------------------- | ||
15 | case List(x*, 1) => // error: pattern expected | ||
| ^ | ||
| pattern expected | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E031] Syntax Error: tests/neg/t5702-neg-bad-and-wild.scala:17:18 --------------------------------------------------- | ||
17 | case (1, x: _*) => // error: bad use of _* (sequence pattern not allowed) | ||
| ^ | ||
| * can be used only for last argument | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E032] Syntax Error: tests/neg/t5702-neg-bad-and-wild.scala:23:17 --------------------------------------------------- | ||
23 | val K(ns @ _*, x) = k // error: pattern expected | ||
| ^ | ||
| pattern expected | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- Error: tests/neg/t5702-neg-bad-and-wild.scala:10:21 ----------------------------------------------------------------- | ||
10 | case List(1, _*,) => // error: pattern expected // error | ||
| ^ | ||
| Values of types Null and Int cannot be compared with == or != | ||
-- [E006] Not Found Error: tests/neg/t5702-neg-bad-and-wild.scala:12:20 ------------------------------------------------ | ||
12 | case List(1, _*3,) => // error: pattern expected // error // error | ||
| ^ | ||
| Not found: * | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- Error: tests/neg/t5702-neg-bad-and-wild.scala:12:22 ----------------------------------------------------------------- | ||
12 | case List(1, _*3,) => // error: pattern expected // error // error | ||
| ^ | ||
| Values of types Null and Int cannot be compared with == or != |
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,10 @@ | ||
-- [E032] Syntax Error: tests/neg/t5702-neg-bad-brace.scala:8:21 ------------------------------------------------------- | ||
8 | case List(1, _*} => // error: pattern expected | ||
| ^ | ||
| pattern expected | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E040] Syntax Error: tests/neg/t5702-neg-bad-brace.scala:11:0 ------------------------------------------------------- | ||
11 |} // error: eof expected, but '}' found | ||
|^ | ||
|eof expected, but '}' found |
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,11 @@ | ||
|
||
object Test { | ||
|
||
def main(args: Array[String]) = { | ||
val is = List(1,2,3) | ||
|
||
is match { | ||
case List(1, _*} => // error: pattern expected | ||
} | ||
} | ||
} // error: eof expected, but '}' found |
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,6 @@ | ||
-- [E032] Syntax Error: tests/neg/trailing-comma-pattern.scala:3:8 ----------------------------------------------------- | ||
3 |// error | ||
| ^ | ||
| pattern expected | ||
| | ||
| 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,3 @@ | ||
object Test: | ||
val List(x, y, _*, | ||
// error |
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,10 @@ | ||
-- [E032] Syntax Error: tests/neg/trailing-comma-pattern2.scala:2:21 --------------------------------------------------- | ||
2 | val List(x, y, _*, ) // error | ||
| ^ | ||
| pattern expected | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E040] Syntax Error: tests/neg/trailing-comma-pattern2.scala:3:8 ---------------------------------------------------- | ||
3 |// error | ||
| ^ | ||
| '=' expected, but unindent found |
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,3 @@ | ||
object Test: | ||
val List(x, y, _*, ) // error | ||
// error |
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,3 @@ | ||
object Test: | ||
val List(x, y, _*, | ||
) = List(1, 2, 3) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.