scala.Precise.scala Maven / Gradle / Ivy
package scala
import annotation.experimental
import language.experimental.erasedDefinitions
/** A type class-like trait intended as a context bound for type variables.
* If we have `[X: Precise]`, instances of the type variable `X` are inferred
* in precise mode. This means that singleton types and union types are not
* widened.
*/
@experimental erased trait Precise:
type Self
© 2015 - 2025 Weber Informatics LLC | Privacy Policy