Skip to content

Instantly share code, notes, and snippets.

@kubukoz
Created July 28, 2017 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kubukoz/05d618850d63a3c8f281590a25dfeed7 to your computer and use it in GitHub Desktop.
Save kubukoz/05d618850d63a3c8f281590a25dfeed7 to your computer and use it in GitHub Desktop.
object Example {
case class Sample(age: Int)
def wrapsBlock(block1: Any) = ???
def ifHasImplicit(block2: Any)(implicit request: String) = ???
def sample(sampleObj: Sample) = wrapsBlock {
ifHasImplicit {
import sampleObj.age
val something = age
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment