-
Notifications
You must be signed in to change notification settings - Fork 59
Add -pending.txt
tests
#463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,17 @@ | ||
================================================================================ | ||
Function without parens | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/scala/scala3/blob/main/tests/pos/multiLineOps.scala#L15 | ||
send_! "!" | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
================================================================================ | ||
Types of lambda parameters without parenthesis | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/361 | ||
xs.map { x: Int => x } |
This file contains hidden or 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,43 @@ | ||
================================================================================ | ||
Trailing coma after for comprehension in lambda parameter of a function | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/449 | ||
object Foo: | ||
def foo(f: Option[Int] => Option[Int]): Option[Int] = f(None) | ||
|
||
foo(o => | ||
for { | ||
a <- o | ||
} yield a, | ||
) | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
================================================================================ | ||
Lambda expression with semicolon | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/389 | ||
TypeTreeWithDeferredRefCheck() { () => val tp = qual.tpe; val sym = tp.typeSymbolDirect | ||
1 | ||
} | ||
|
||
val l1 = { () => val x = 1; 2 } | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
================================================================================ | ||
infix_expression across multiple lines | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/141 | ||
def foo: Boolean = | ||
x | ||
|| a.b(c) | ||
|
||
-------------------------------------------------------------------------------- | ||
|
This file contains hidden or 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,12 @@ | ||
================================================================================ | ||
Infix types in match type cases | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/360 | ||
type F[T] = T match { | ||
case t *: EmptyTuple => t | ||
case t *: rest => t | ||
} | ||
|
||
-------------------------------------------------------------------------------- |
This file contains hidden or 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,40 @@ | ||
|
||
================================================================================ | ||
Subclass with multiline params and unnamed after named param | ||
jonshea marked this conversation as resolved.
Show resolved
Hide resolved
|
||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/465 | ||
// https://github.com/scala/scala3/blob/main/tests/run/i14164.scala#L5-L9 | ||
class Child extends Base( | ||
param = | ||
for x <- Seq("a") yield x | ||
"param" | ||
) | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
================================================================================ | ||
case class nested in an object definition | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/329 | ||
object Merge: | ||
|
||
case class Location(runIndex: Int, locationInRun: String): | ||
end Location | ||
|
||
end Merge | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
================================================================================ | ||
More than two argument lists in `extends` | ||
:skip | ||
================================================================================ | ||
|
||
// https://github.com/tree-sitter/tree-sitter-scala/issues/259 | ||
class A extends B(c)(d)(e) | ||
|
||
-------------------------------------------------------------------------------- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.