Skip to content

Instantly share code, notes, and snippets.

@knightpop
Created September 9, 2017 18:06
Embed
What would you like to do?
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