【Go】同じ基底型であっても別の名前で定義してたら別の型である
#Go
例えば...
code: go
type Celsius float64
type Fahrenheit float64
c := Celsius(100)
f := Fahrenheit(212)
// c + f // エラー: 型が違う
c + Celsius(f) // OK: 型変換