Skip to content

Instantly share code, notes, and snippets.

@manuelleduc
Last active February 18, 2019 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelleduc/61798055b6282d3e9e76981b788549e7 to your computer and use it in GitHub Desktop.
Save manuelleduc/61798055b6282d3e9e76981b788549e7 to your computer and use it in GitHub Desktop.
  • ClassA2.class
  • ClassA.class
  • Expr.class
  • IntLit$.class'
  • IntLit.class
  • ObjectB$.class'
  • ObjectB.class
  • Sum$.class'
  • Sum.class
  • TraitC.class
class ClassA {
val a = 1
def a2 = 1
val b: Int => Int = (x: Int) => x + 1
}
sealed trait Expr
case class Sum(lhs: Expr, rhs: Expr) extends Expr
case class IntLit(a: Int) extends Expr
class ClassA2 extends ClassA with TraitC {
}
object ObjectB {
val a = 1
def a2 = 1
val b: Int => Int = (x: Int) => x + 1
}
trait TraitC {
val at = 1
def at2 = 1
val bt: Int => Int = (x: Int) => x + 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment