Skip to content

Commit

Permalink
Add the failing tests cited in issue scalameta#1599
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Feb 18, 2020
1 parent b4f6430 commit 18552ba
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,3 +702,42 @@ object a {
_ => e
)
}
<<< #1599 1: original, with partial func
object A {
def foo() = {
x.map(_.y(
abcd,
{ case ((abcdefghij, aswbasdfaw), asfda) => aswdf},
{ case (abcdefghij, sadfasdass) => (asdfa.sadvfs(abcdefghij).get, asdfasdfasfdasda.asdfas(asdfasdaas).get) },
foo
))
}
}
>>>
Unable to format file due to bug in scalafmt
<<< #1599 2: modified, with partial func inside block
object A {
def foo() = {
x.map(_.y(
abcd,
{{ case ((abcdefghij, aswbasdfaw), asfda) => aswdf}},
{{ case (abcdefghij, sadfasdass) => (asdfa.sadvfs(abcdefghij).get, asdfasdfasfdasda.asdfas(asdfasdaas).get) }},
foo
))
}
}
>>>
Unable to format file due to bug in scalafmt
<<< #1599 3: modified, with lambda
object A {
def foo() = {
x.map(_.y(
abcd,
{ case_abcdefghij_aswbasdfaw_asfda => aswdf},
{ case_abcdefghij_sadfasdass => (asdfa.sadvfs(abcdefghij).get, asdfasdfasfdasda.asdfas(asdfasdaas).get) },
foo
))
}
}
>>>
Unable to format file due to bug in scalafmt

0 comments on commit 18552ba

Please sign in to comment.