mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
reflect: don't construct an interface-in-interface value
v.Interaface() could construct an interface in interface value if v was of type interface. This is not correct, and doesn't follow upstream Go behavior. Instead, it should return the interface value itself.
This commit is contained in:
committed by
Ron Evans
parent
b534dd67e0
commit
d15e32fb89
Vendored
+4
@@ -377,3 +377,7 @@ type assertion succeeded for unreferenced type
|
||||
|
||||
struct tags
|
||||
blue gopher
|
||||
|
||||
v.Interface() method
|
||||
kind: interface
|
||||
int 5
|
||||
|
||||
Reference in New Issue
Block a user