Commit cadfe69a authored by Dylan Trotter's avatar Dylan Trotter

Weak ref type can be a base class.

parent 227bd4d6
...@@ -152,7 +152,6 @@ func weakRefRepr(f *Frame, o *Object) (*Object, *BaseException) { ...@@ -152,7 +152,6 @@ func weakRefRepr(f *Frame, o *Object) (*Object, *BaseException) {
} }
func initWeakRefType(map[string]*Object) { func initWeakRefType(map[string]*Object) {
WeakRefType.flags &= ^typeFlagBasetype
WeakRefType.slots.Call = &callSlot{weakRefCall} WeakRefType.slots.Call = &callSlot{weakRefCall}
WeakRefType.slots.Hash = &unaryOpSlot{weakRefHash} WeakRefType.slots.Hash = &unaryOpSlot{weakRefHash}
WeakRefType.slots.New = &newSlot{weakRefNew} WeakRefType.slots.New = &newSlot{weakRefNew}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment