Created
February 22, 2017 01:34
-
-
Save Biacco42/4fcfc0fb5296c9785c6e44f1a642e110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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