Skip to content

Instantly share code, notes, and snippets.

View Moverr's full-sized avatar
🏖️
😁👍😔😂❤️😍😒👌

Muyinda Rogers Moverr

🏖️
😁👍😔😂❤️😍😒👌
View GitHub Profile
@Moverr
Moverr / Main.scala
Created February 23, 2021 19:43 — forked from jpallari/Main.scala
Ways to pattern match generic types in Scala
object Main extends App {
AvoidLosingGenericType.run()
AvoidMatchingOnGenericTypeParams.run()
TypeableExample.run()
TypeTagExample.run()
}
class Funky[A, B](val foo: A, val bar: B) {
override def toString: String = s"Funky($foo, $bar)"
}