org.scalactic.Good.GoodType
Supports the syntax that enables Bad instances to be created with a specific Good type.
Attributes
-
Source
-
Or.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Members list
Factory method for Bad instances whose Good type is specified by the type parameter of this GoodType.
Factory method for Bad instances whose Good type is specified by the type parameter of this GoodType.
This method enables this syntax:
Good[Int].orBad("oops")
^
Value parameters
-
b
-
the “bad” value
Attributes
-
Returns
-
a new Bad instance containing the passed b value
-
Source
-
Or.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
-
Returns
-
a string representation of the object.
-
Definition Classes
-
Any
-
Source
-
Or.scala