Skip to content

Instantly share code, notes, and snippets.

@ukitaka
Created February 21, 2017 06:00
Show Gist options
  • Save ukitaka/8dee1705f5d1e2a93e617f209dfd46ba to your computer and use it in GitHub Desktop.
Save ukitaka/8dee1705f5d1e2a93e617f209dfd46ba to your computer and use it in GitHub Desktop.
左辺からの推論.scala
def id[A](a: A): A = a
val eDouble1: Double = id(2.123345)
id(2) // Int
val eDouble2: Double = id(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment