Of course we can make this a bit more elegant by creating an infix operator method to use with our infix type:
An infix type T1 op T2
consists of an infix operator op
which gets applied to two
type operands T1
and T2
.
An infix type T1 op T2
consists of an infix operator op
which gets applied to two
type operands T1
and T2
. The type is equivalent to the type application op[T1,T2]
.
The infix operator op may be an arbitrary identifier, except for *
, which is reserved
as a postfix modifier denoting a repeated parameter type.
We can make a type infix, meaning that the type can be displayed in complement between two types in order to make a readable declaration:
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
Please use 'an [Exception] should be thrownBy { ... }' syntax instead
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.