Created
May 17, 2020 23:00
-
-
Save yenerm/c946a0db78e810a9d4f310257db45b42 to your computer and use it in GitHub Desktop.
Generic Function in Kotlin
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
fun <T> printType(classType: Class<T>) { | |
print(classType::class.java) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment