scala.reflect.TypeTest
See theTypeTest companion object
A TypeTest[S, T] contains the logic needed to know at runtime if a value of
type S is an instance of T.
If a pattern match is performed on a term of type s: S that is uncheckable with s.isInstanceOf[T] and
the pattern is one of the following forms:
t: Tt @ X()whereX.unapplytakes an argument of typeTthen a given instance ofTypeTest[S, T]is summoned and used to perform the test.
Attributes
- Companion:
- object
- Graph
- Supertypes