Created
April 18, 2016 14:06
-
-
Save saturov/dead509398a9c2c302241e3e102b6894 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
sealed class Expr { | |
class Const(val number: Double) : Expr() | |
class Sum(val e1: Expr, val e2: Expr) : Expr() | |
object NotANumber : Expr() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment