Last active
          February 11, 2020 07:28 
        
      - 
      
 - 
        
Save lordcodes/07c3efb32148fa3990fa361f3e40fc17 to your computer and use it in GitHub Desktop.  
    Code for my article "Enforcing type safety of IDs in Kotlin"
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | // Team.kt | |
| typealias TeamId = Identifier<Team, UUID> | |
| data class Team(val id: TeamId) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment