Last active
May 22, 2021 19:56
-
-
Save Hoegy/6e10a732dfc20b90421fa6e12466512d to your computer and use it in GitHub Desktop.
extension_function_example2.kt
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
interface LandVehicle | |
fun <T> T.cruiseTheBoulevard(): String where T: Vehicle, T: LandVehicle { | |
return "cruising the boulevard with my ${getMakeAndModel()}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment