Skip to content

Instantly share code, notes, and snippets.

@notyy
Created September 18, 2014 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notyy/84400296622780449191 to your computer and use it in GitHub Desktop.
Save notyy/84400296622780449191 to your computer and use it in GitHub Desktop.
//this is ok
case class FieldName(name: String){
def ::[T](v:T): T = v
}
1 :: (FieldName("yy"))
//doesn't work
case class FieldName(name: String){
def :=>[T](v:T): T = v
}
1 :=> (FieldName("yy"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment