mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-11 23:19:30 +00:00
reflect: fix pointer receiver for MakeRO
This commit is contained in:
committed by
Damian Gryski
parent
7fa50a55cf
commit
33ddee76db
@@ -4727,8 +4727,7 @@ func IsRO(v Value) bool {
|
||||
}
|
||||
|
||||
func MakeRO(v Value) Value {
|
||||
v.MakeRO(true)
|
||||
return v
|
||||
return Value{v.MakeRO(true)}
|
||||
}
|
||||
|
||||
func TestConvert(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user