Advertisement
Guest User

Untitled

a guest
Oct 19th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.25 KB | None | 0 0
  1. trait AuthTrait {
  2.   def doStuff(): AuthStrategy = {
  3.     new AuthStrategy
  4.   }
  5. }
  6.  
  7. class Controller extends AuthTrait {
  8.   def useDep(dep: String): Unit = {
  9.     dep
  10.   }
  11. }
  12.  
  13. class AuthStrategy {
  14.   def useDep(dep: String) = {
  15.     dep
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement