来源:https://stackoverflow.com/questions/28056521/understanding-pattern-matching-with-sub-classes 标签 scala pattern-matching