Re: [go-nuts] confused about assignability

2018-09-06 Thread Ian Lance Taylor
On Thu, Sep 6, 2018 at 7:00 AM, Jonathan Amsterdam wrote: > Consider > > type Int int > var y int = Int(3) > > The spec says > > A value x is assignable to a variable of type T ("x is assignable to T") if > one of the following conditions applies: > > x's type V and T have identical underlying typ

[go-nuts] confused about assignability

2018-09-06 Thread Jonathan Amsterdam
Consider type Int int var y int = Int(3) The spec says A value x is assignable to a variable of type T ("x is assignable to T") if one of the following conditions applies: - x's type V and T have identical underlying types