Guest User

Untitled

a guest
Jul 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.65 KB | None | 0 0
  1.     def backward[E <: Element](condition: E => Boolean)(implicit manifest: Manifest[E]): E = {
  2.       previous match {
  3.         case null => null
  4.         case element if (matchesManifest(previous, manifest)) => element.asInstanceOf[E]
  5.         case element => element.hierarchy.backward[E](condition)(manifest)
  6.       }
  7.     }
  8.  
  9. [info] Compiling 1 Scala source to Z:\programming\sgine\core\target\scala-2.9.1\classes...
  10. [error] Z:\programming\sgine\core\src\main\scala\org\sgine\hierarchy\Element.scala:45: type mismatch;
  11. [error]  found   : Null(null)
  12. [error]  required: E
  13. [error]         case null => null
  14. [error]                      ^
  15. [error] one error found
Add Comment
Please, Sign In to add comment