reflect.call: internal/abi: TFlagClosure, internal/lib/reflect: flagClosure.

This commit is contained in:
visualfc
2024-10-29 19:59:32 +08:00
parent 88c0e149b5
commit 6b0122547e
9 changed files with 442 additions and 8 deletions

View File

@@ -439,4 +439,8 @@ func isDirectIface(t *_type) bool {
return t.Kind_&abi.KindDirectIface != 0
}
func SetClosure(t *abi.Type) {
t.TFlag |= abi.TFlagClosure
}
// -----------------------------------------------------------------------------