Skip to content

Implement support for typetests using ClassTags #1099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DarkDimius opened this issue Feb 17, 2016 · 0 comments
Closed

Implement support for typetests using ClassTags #1099

DarkDimius opened this issue Feb 17, 2016 · 0 comments

Comments

@DarkDimius
Copy link
Contributor

def foo[T: ClassTag](x: Object) = 
  x match {
    case t: T => true
    case _   => false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants