diff options
author | Paul Phillips <paulp@improving.org> | 2009-06-13 14:56:58 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-06-13 14:56:58 +0000 |
commit | 5982a5347b342faa2c5d20ae1ec426420e2f088f (patch) | |
tree | 2b60972c0d6f13225857788b91f5738251c2a96c /docs/examples/monads/simpleInterpreter.scala | |
parent | d3ff8d400fbd813015f7eeb1a886e235f9951207 (diff) | |
download | scala-5982a5347b342faa2c5d20ae1ec426420e2f088f.tar.gz scala-5982a5347b342faa2c5d20ae1ec426420e2f088f.tar.bz2 scala-5982a5347b342faa2c5d20ae1ec426420e2f088f.zip |
Fixed some deprecation warnings.
Diffstat (limited to 'docs/examples/monads/simpleInterpreter.scala')
-rw-r--r-- | docs/examples/monads/simpleInterpreter.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/monads/simpleInterpreter.scala b/docs/examples/monads/simpleInterpreter.scala index 0707c40d06..219b137c31 100644 --- a/docs/examples/monads/simpleInterpreter.scala +++ b/docs/examples/monads/simpleInterpreter.scala @@ -14,7 +14,7 @@ object simpleInterpreter { trait Term; case class Var(x: Name) extends Term; - case class Con(n: int) extends Term; + case class Con(n: Int) extends Term; case class Add(l: Term, r: Term) extends Term; case class Lam(x: Name, body: Term) extends Term; case class App(fun: Term, arg: Term) extends Term; @@ -23,7 +23,7 @@ object simpleInterpreter { case object Wrong extends Value { override def toString() = "wrong" } - case class Num(n: int) extends Value { + case class Num(n: Int) extends Value { override def toString() = n.toString(); } case class Fun(f: Value => M[Value]) extends Value { |