reset password
Author Message
Gayaneh
Posts: 40
Posted 21:26 Oct 23, 2012 |

Why am I getting type mismatch error when I try to combine elements of List[Leaf] to create CodeTree? Isn't t Leaf subtype of CodeTree?  How can I go from an ordered list of List[Leaf] to construct  a CodeTree? 

Gayaneh
Posts: 40
Posted 21:57 Oct 23, 2012 |

It's working now... it needed a  val: cl: List[CodeTree] = ...

Thanks for your time reading this.