hylo
hylo copied to clipboard
Implement synthesization of Copyable conformances
public type Foo : Regular {
var i : Int
init(){ &i = 3 }
}
public conformance Foo: Equatable {
public fun infix== (_ other: Self) -> Bool {
return true
}
}
// public conformance Foo: Copyable {
// public fun copy() -> Self {
// Foo()
// }
// }
This results in Fatal error: not implemented
. Note that when the lines are uncommented, this works okay.
The problem isn't about partially implemented conformances. It is about the synthesization of Copyable
's conformance specifically, as it's not implemented.
Then I think you should change the issue title.
Either way, there should be an error message instead of an illegal instruction.
See also #1078