Skip to content
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

Support holes as function arguments #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Tweak test to give the same output in Scala 2.11/2.12
cb372 committed Nov 28, 2020
commit 5ba93e7431829c975c0c7c380a97a7bf6344727f
8 changes: 4 additions & 4 deletions src/test/resources/val-var-def-one-liners/expected.txt
Original file line number Diff line number Diff line change
@@ -77,9 +77,9 @@ Relevant bindings include
def hole15(x: String) = x.contains(???)
^
src/test/resources/val-var-def-one-liners/input.scala:35:
Found hole with type: Char => Boolean
Found hole with type: A => Boolean
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly here

Relevant bindings include
x: String (bound at input.scala:35:14)
xs: List[Int] (bound at input.scala:35:14)

def hole16(x: String) = x.exists(???)
^
def hole16(xs: List[Int]) = xs.exists(???)
^
2 changes: 1 addition & 1 deletion src/test/resources/val-var-def-one-liners/input.scala
Original file line number Diff line number Diff line change
@@ -32,6 +32,6 @@ object Foo {

def hole15(x: String) = x.contains(???)

def hole16(x: String) = x.exists(???)
def hole16(xs: List[Int]) = xs.exists(???)

}