-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Milestone
Description
For any class in other than Object, this is a valid implementation of free in a class:
free: override func {
[clean up your mess]
super()
}This is not:
free: func {
[clean up your mess]
}and neither is this:
free: override func {
[clean up your mess]
// no super
}Also, this is useless:
free: override func {
super()
}Magic should be able to detect when a class has an invalid free function, but it will require that magic knows it's looking at a class, and not a cover, because those rules don't apply there.