Skip to content

Instantly share code, notes, and snippets.

@Biacco42
Created February 22, 2017 01:34
Show Gist options
  • Save Biacco42/4fcfc0fb5296c9785c6e44f1a642e110 to your computer and use it in GitHub Desktop.
Save Biacco42/4fcfc0fb5296c9785c6e44f1a642e110 to your computer and use it in GitHub Desktop.
object Main extends App{
implicit val createValueInt: Int = 3
implicit val createValueStrign: String = "po"
def createValue[T](implicit value: T) = value
val valueInt: Int = createValue
println(valueInt)
val valueString: String = createValue
println(valueString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment