Packages

Scalactic is brought to you by:

class GoodType[G] extends AnyRef

Supports the syntax that enables Bad instances to be created with a specific Good type.

Source
Or.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GoodType
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GoodType()

Value Members

  1. def orBad[B](b: B): Or[G, B]

    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")
              ^
    

    b

    the “bad” value

    returns

    a new Bad instance containing the passed b value

  2. def toString(): String
    Definition Classes
    GoodType → AnyRef → Any