Skip to content

Instantly share code, notes, and snippets.

View robmwalsh's full-sized avatar

Rob W robmwalsh

  • Coffs Harbour, Australia
View GitHub Profile
@robmwalsh
robmwalsh / StructuralReturnType.scala
Last active May 4, 2020 23:46
return structural types (or use aux pattern) to hang on to path dependent types
package broken
import broken.Tag._
sealed trait Tag[A]
object Tag {
case object IntTag extends Tag[Int]
case object StringTag extends Tag[String]
}