mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Move sys.Reflect and sys.Unreflect into unsafe.
R=rsc DELTA=19 (4 added, 5 deleted, 10 changed) OCL=28563 CL=28566
This commit is contained in:
parent
d4fa253837
commit
c367d1b789
7 changed files with 14 additions and 15 deletions
|
|
@ -314,7 +314,7 @@ func TestInterfaceValue(t *testing.T) {
|
|||
|
||||
i3 := v2.Interface();
|
||||
if f, ok := i3.(float); !ok {
|
||||
a, typ, c := sys.Reflect(i3);
|
||||
a, typ, c := unsafe.Reflect(i3);
|
||||
t.Error("v2.Interface() did not return float, got ", typ);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue