-
-
Save Yuichiroh/d28047863751c83a2e6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class School[T <: Student : ClassTag](val students: Seq[T]) { | |
def studentsAsArray = students.toArray | |
// OK | |
def studentsAsList = students.toList | |
// OK | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment