Skip to content

Commit

Permalink
Add tests of implicit clause in vertical multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Mar 31, 2023
1 parent 6691438 commit 32436ec
Showing 1 changed file with 174 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,3 +438,177 @@ object a {
d: D,
implicit val e: E) {}
}
<<< ONLY #3520 implicitParamListModifierForce = [after], no VML
verticalMultiline.atDefnSite = no
newlines.implicitParamListModifierForce = [after]
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(a: Int)(implicit
b: Int
): Int =
a + b
def bar(a: Int)(implicit
b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierForce = [after]
newlines.implicitParamListModifierForce = [after]
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(
a: Int
)(implicit
b: Int
): Int =
a + b
def bar(
a: Int
)(implicit
b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierForce = [before], no VML
verticalMultiline.atDefnSite = no
newlines.implicitParamListModifierForce = [before]
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(a: Int)(
implicit b: Int
): Int =
a + b
def bar(a: Int)(
implicit b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierForce = [before]
newlines.implicitParamListModifierForce = [before]
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(
a: Int
)(
implicit b: Int
): Int =
a + b
def bar(
a: Int
)(
implicit b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierPrefer = after, no VML
verticalMultiline.atDefnSite = no
newlines.implicitParamListModifierPrefer = after
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit
b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierPrefer = after
newlines.implicitParamListModifierPrefer = after
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(
a: Int
)(implicit b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierPrefer = before, no VML
verticalMultiline.atDefnSite = no
newlines.implicitParamListModifierPrefer = before
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(
implicit b: Int // c
): Int =
a + b
}
<<< ONLY #3520 implicitParamListModifierPrefer = before
newlines.implicitParamListModifierPrefer = before
===
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(a: Int)(implicit b: Int // c
): Int =
a + b
}
>>>
object Foo {
def bar(a: Int)(implicit b: Int): Int =
a + b
def bar(
a: Int
)(implicit b: Int // c
): Int =
a + b
}

0 comments on commit 32436ec

Please sign in to comment.