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 ff43160 commit b270218Copy full SHA for b270218
docs/docs/reference/contextual/implicit-function-types.md
@@ -120,9 +120,10 @@ object PostConditions {
120
121
def result[T] given (r: WrappedResult[T]): T = r
122
123
- def (x: T)
124
- ensuring[T](condition: given WrappedResult[T] => Boolean): T =
125
- assert(condition) given x
+ def (x: T) ensuring[T](condition: given WrappedResult[T] => Boolean): T = {
+ assert(condition given x)
+ x
126
+ }
127
}
128
import PostConditions.{ensuring, result}
129
0 commit comments