Aug 26, 2022
version = 1 test_patterns = [ "src/test/scala/**" ] exclude_patterns = [ "**/examples/**" ] [[analyzers]] name = "scala" enabled = true [analyzers.meta] major_version = "2"
If the type argument is erased as part of compilation, any calls to asInstanceOf[T] and isInstanceOf[T] will return unreliable results. In case an entity cannot be converted to the required type T, asInstanceOf will throw ClassCastException. It is suggested that you use this as a last resort - only if you are absolutely sure what you are doing.