KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
what is wrong in this piece of code? (Left("aoeu")) match{case Right(x) => ; case Left(x) => } <console>:6: error: constructor cannot be instantiated to expected type; found : Right[A,B] required: Left[java.lang.String,Nothing] why the pattern matcher just doesn't skip the Right and examine Left?
Tags (comma-separated)
Save Edits
Cancel