7d6cf7f511
- lib/Drop.bux: interface Drop { func Drop(self: *Self); }
- sema.bux: define TypeName_MethodName in scope for impl block methods
so auto-drop (Lcx_BuildAutoDropFree) can find Drop implementations
via extend Type for Drop, not just @[Drop] or standalone functions
- Verified: extend Buffer for Drop auto-calls Buffer_Drop in @[Checked]
5 lines
128 B
Plaintext
5 lines
128 B
Plaintext
// Drop trait — automatic cleanup for heap-allocated or resource-holding types
|
|
interface Drop {
|
|
func Drop(self: *Self);
|
|
}
|