Created
February 8, 2012 12:24
-
-
Save seratch/1768947 to your computer and use it in GitHub Desktop.
type AnyVal cannot be used in a type pattern or isInstanceOf test
This file contains hidden or 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
| scala> "ss".isInstanceOf[Any] | |
| res3: Boolean = true | |
| scala> "ss".isInstanceOf[AnyVal] | |
| <console>:8: error: type AnyVal cannot be used in a type pattern or isInstanceOf test | |
| "ss".isInstanceOf[AnyVal] | |
| ^ | |
| scala> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment