We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad2986 commit f77bac4Copy full SHA for f77bac4
Dsl/src/main/scala/com/thoughtworks/dsl/Dsl.scala
@@ -491,18 +491,15 @@ object Dsl extends LowPriorityDsl0 {
491
492
}
493
494
- trait Run[Keyword, Domain, Value] extends (Keyword => Domain)
+ opaque type Run[Keyword, Domain, Value] <: Keyword => Domain =
495
+ Keyword => Domain
496
497
object Run {
498
499
given [Keyword, Domain, Value](using
500
dsl: /*=>*/ PolyCont[Keyword, Domain, Value],
501
lift: /*=>*/ Lift[Value, Domain]
- ): Run[Keyword, Domain, Value] with {
502
- @inline def apply(keyword: Keyword): Domain = {
503
- dsl.cpsApply(keyword, lift)
504
- }
505
+ ): Run[Keyword, Domain, Value] = { dsl.cpsApply(_, lift) }
506
507
508
0 commit comments