Skip to content

Instantly share code, notes, and snippets.

@darkfrog26
Created December 7, 2014 18:13
Show Gist options
  • Save darkfrog26/140ddbfeaa1f640ffc4d to your computer and use it in GitHub Desktop.
Save darkfrog26/140ddbfeaa1f640ffc4d to your computer and use it in GitHub Desktop.
trait AAttribute
trait A extends HTMLTag {
def href: Attribute[String] with AAttribute
def target: Attribute[Target] with AAttribute
}
case class ImmutableA(attributes: Seq[AAttribute], children: Seq[HTMLTag]) extends A
class MutableA {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment