- ClassA2.class
- ClassA.class
- Expr.class
- IntLit$.class'
- IntLit.class
- ObjectB$.class'
- ObjectB.class
- Sum$.class'
- Sum.class
- TraitC.class
Last active
February 18, 2019 09:08
-
-
Save manuelleduc/61798055b6282d3e9e76981b788549e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassA { | |
val a = 1 | |
def a2 = 1 | |
val b: Int => Int = (x: Int) => x + 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object ObjectB { | |
val a = 1 | |
def a2 = 1 | |
val b: Int => Int = (x: Int) => x + 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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