Skip to content

Instantly share code, notes, and snippets.

@pedrofurla
Created September 9, 2013 14:46
Show Gist options
  • Select an option

  • Save pedrofurla/6496611 to your computer and use it in GitHub Desktop.

Select an option

Save pedrofurla/6496611 to your computer and use it in GitHub Desktop.
"Subverting" Scala parser with compiler plugin
sealed trait Foo | Bleh | Dummy(val x:Int)
Into:
sealed trait Foo
case class Bleh extends Foo
case class Dummy(val x:Int) extends Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment