Dear all,
I have a class
case class Left(val e: Expr = Num(1)) extends Command
which I'd like to use like
val v = Left
in which I'd be omitting the constructor's parentheses -- just like those of any other purely functional method. I get the following error under Scala 2.11.8, however:
type mismatch; found : m1.syntax.Left.type required: m2.syntax.Command
Why is that?
TIA,
--Hossein
--------------------------------------------------------------------------------------------------------------
Seyed H. HAERI (Hossein), Dr.
Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium
ACCU - Professionalism in programming -
http://www.accu.org/--------------------------------------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
For more options, visit
https://groups.google.com/d/optout.