Foo.is_eq would return false if the type was a typedef and had an overload, but the underlying type was not comparable. Version 0.7.8.

This commit is contained in:
Christoffer Lerno
2025-10-31 22:47:01 +01:00
parent 5a3c484ceb
commit f25ad512a7
4 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
module test;
import std;
struct Boo { int a; }
typedef Foo = Boo;
fn bool Foo.eq(Foo a, Foo b) @operator(==) => false;
fn int main()
{
$assert Foo.is_eq;
return 0;
}