Open dabrahams opened 7 months ago
Reproducing the bug is more complex than the title suggests as this program works fine:
type X: Comparable, Deinitializable {
public memberwise init
public fun infix== (_ r: X) -> Bool { true }
public fun infix< (_ r: X) -> Bool { false }
}
public fun main() {
_ = X() >= X()
}
The issue is likely related to constraints on an associated type being not picked up properly.
At 58b62b6adaaaa run DriverTests and you can see failures in the standard library reflecting the bug in the title.
If there's something not supported in the source code we should issue a "not supported" diagnostic.