Created
September 9, 2017 18:06
-
-
Save knightpop/d11394870436f6ab9fe03a136913fb95 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
def getId(userId: UserId): Long = userId + 1 | |
def getId(deviceUuid: DeviceUuid): Long = deviceUuid + 2 // Not Compiled because tagged type erased after compile | |
def getId(carSerialId: CarSerialId): Long = carSerialId + 3 // Not Compiled because tagged type erased after compile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment