A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tinygo-org/tinygo/issues/4277 below:

Add support for handling `Interface` in `reflect.Type.AssignableTo()` · Issue #4277 · tinygo-org/tinygo · GitHub

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.

func (t *rawType) AssignableTo(u Type) bool { if t == u.(*rawType) { return true } if u.Kind() == Interface && u.NumMethod() == 0 { return true } if u.Kind() == Interface { panic("reflect: unimplemented: AssignableTo with interface") } return false }

If a solution becomes available, I can use some existing tests in fxamacker/cbor to help test it.

jaredLunde, x448, reteps, xplshn and 3ddi


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4