mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
9 lines
194 B
C
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;
|
|
} |