Files
c3c/test/test_suite/expressions/casts/failed_distinct_float_conversions.c3
Christoffer Lerno 3e54d13b62 Prefer def
2023-06-02 20:08:45 +02:00

9 lines
194 B
C

def Foo = distinct double;
def Bar = distinct void*;
fn int main()
{
float f = 1;
Foo foo = f; // #error: you may use a cast
Bar bar = f; // #error: It is not possible to convert
return 1;
}