All Downloads are FREE. Search and download functionalities are using the official Maven repository.

overflowdb.traversal.DefaultsToNode.scala Maven / Gradle / Ivy

package overflowdb.traversal

import overflowdb.Node

/** Typeclass to prevent type inferencer to default to `Nothing` if no type parameter is given used e.g. for
  * `NodeTypeStarters:id`
  */
sealed class DefaultsToNode[A]

object DefaultsToNode {

  implicit def overrideDefault[A]: DefaultsToNode[A] =
    new DefaultsToNode[A]

  implicit val default: DefaultsToNode[Node] =
    new DefaultsToNode[Node]

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy