You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tinygo v0.33 doesn't implement Type.AssignableTo(), which is
needed under the hood when decoding registered CBOR tag data
to Go interface.
More details in tinygo-org/tinygo#4277.
This commit returns error of UnmarshalTypeError type when
decoding registered CBOR tag data to Go interface.
This change can be reverted after tinygo implements
Type.AssignalbeTo().
Some packages like fxamacker/cbor require
Type.AssignableTo
to support Interface.There was some prior discussion at fxamacker/cbor#295 (comment).
Projects using packages that require Interface support can encounter panics from the following code.
tinygo/src/reflect/type.go
Lines 956 to 969 in 6384eca
If a solution becomes available, I can use some existing tests in fxamacker/cbor to help test it.
The text was updated successfully, but these errors were encountered: