given_TypeTest_Any_uinteger

langoustine.lsp.runtime.runtime$package.uinteger.given_TypeTest_Any_uinteger
object given_TypeTest_Any_uinteger extends TypeTest[Any, uinteger]

Attributes

Source
runtime.scala
Graph
Supertypes
trait TypeTest[Any, uinteger]
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(i: Any): Option[i.type & uinteger]

A TypeTest[S, T] can serve as an extractor that matches if and only if a value of type S is an instance of T.

A TypeTest[S, T] can serve as an extractor that matches if and only if a value of type S is an instance of T.

The compiler tries to turn unchecked type tests in pattern matches into checked ones by wrapping a (_: T) type pattern as tt(_: T), where tt is the TypeTest[S, T] instance. Type tests necessary before calling other extractors are treated similarly. SomeExtractor(...) is turned into tt(SomeExtractor(...)) if T in SomeExtractor.unapply(x: T) is uncheckable, but we have an instance of TypeTest[S, T].

Attributes

Source
runtime.scala