score:3

Accepted answer

names in patterns, which start with a capital letter, are interpreted as variable or object names that refer to an extractor (an object with an unapply or unapplyseq method). since you haven't declared such a variable or object, scala can't find it and throws an error.


Related Query

More Query from same tag