Advertisement
Guest User

Untitled

a guest
Nov 12th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.26 KB | None | 0 0
  1. def twoImp(implicit i : Int, s: String) = {
  2.   i + "  " + s
  3. }
  4.  
  5. implicit val s = "implicit string"
  6.  
  7.  
  8. twoImp(2)
  9.  
  10. error: not enough arguments for method twoImp: (implicit i: Int, implicit s: String)String.
  11. Unspecified value parameter s.
  12.               twoImp(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement