diff --git a/scalafmt-tests/src/test/resources/default/TypeWith.stat b/scalafmt-tests/src/test/resources/default/TypeWith.stat index 0defd3a60e..a2cb7f7f2c 100644 --- a/scalafmt-tests/src/test/resources/default/TypeWith.stat +++ b/scalafmt-tests/src/test/resources/default/TypeWith.stat @@ -19,3 +19,29 @@ implicit val catsStdInstancesForOption: Traverse[Option] with Alternative[Option] with CommutativeMonad[Option] with CoflatMap[Option] = ??? +<<< with-chain types #1125 +type RequiredServices = Bag with + SomeOtherService.RequiredServices + with HasDynamicConfig with HasThrottles + with HasThrowableNotifier +>>> +type RequiredServices = Bag + with SomeOtherService.RequiredServices + with HasDynamicConfig + with HasThrottles + with HasThrowableNotifier +<<< abstract def #1125 +trait NeedsServices { + def services: Bag with + SomeOtherService.RequiredServices + with HasDynamicConfig with HasThrottles + with HasThrowableNotifier +} +>>> +trait NeedsServices { + def services: Bag + with SomeOtherService.RequiredServices + with HasDynamicConfig + with HasThrottles + with HasThrowableNotifier +} diff --git a/scalafmt-tests/src/test/resources/unit/Type.stat b/scalafmt-tests/src/test/resources/unit/Type.stat index 17cb4ae2af..1d29ef87ad 100644 --- a/scalafmt-tests/src/test/resources/unit/Type.stat +++ b/scalafmt-tests/src/test/resources/unit/Type.stat @@ -85,29 +85,3 @@ type Row = type a = b_! # D >>> type a = b_! #D -<<< with-chain types #1125 -type RequiredServices = Bag with - SomeOtherService.RequiredServices - with HasDynamicConfig with HasThrottles - with HasThrowableNotifier ->>> -type RequiredServices = Bag - with SomeOtherService.RequiredServices - with HasDynamicConfig - with HasThrottles - with HasThrowableNotifier -<<< abstract def #1125 -trait NeedsServices { - def services: Bag with - SomeOtherService.RequiredServices - with HasDynamicConfig with HasThrottles - with HasThrowableNotifier -} ->>> -trait NeedsServices { - def services: Bag - with SomeOtherService.RequiredServices - with HasDynamicConfig - with HasThrottles - with HasThrowableNotifier -}