mirror of https://github.com/golang/go.git
This commit is contained in:
parent
066c4224ed
commit
9cc550f3db
|
|
@ -143,7 +143,7 @@ const (
|
|||
SSUBTYP_DWLINE = 0x20000 // DWARF line-number section
|
||||
SSUBTYP_DWPBNMS = 0x30000 // DWARF public names section
|
||||
SSUBTYP_DWPBTYP = 0x40000 // DWARF public types section
|
||||
SSUBTYP_DWARNGE = 0x50000 // DWARF arranges section
|
||||
SSUBTYP_DWARNGE = 0x50000 // DWARF aranges section
|
||||
SSUBTYP_DWABREV = 0x60000 // DWARF abbreviation section
|
||||
SSUBTYP_DWSTR = 0x70000 // DWARF strings section
|
||||
SSUBTYP_DWRNGES = 0x80000 // DWARF ranges section
|
||||
|
|
|
|||
|
|
@ -718,7 +718,7 @@ func (dec *Decoder) decodeInterface(ityp reflect.Type, state *decoderState, valu
|
|||
error_(dec.err)
|
||||
}
|
||||
// Assign the concrete value to the interface.
|
||||
// Treat carefully; it might not satisfy the interface.
|
||||
// Tread carefully; it might not satisfy the interface.
|
||||
if !typ.AssignableTo(ityp) {
|
||||
errorf("%s is not assignable to type %s", typ, ityp)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue