Closed Feoramund closed 2 weeks ago
I don't think this is supposed to compile.
I don't think this is supposed to compile.
I don't think so either, but neither should it assert. An error message that you can't use bool
in an int
bit set would be appropriate here.
I don't think this is supposed to compile.
The PR does not make it compile.
An error message that you can't use
bool
in anint
bit set would be appropriate here./tmp/odin/crash/crash.odin(11:11) Error: Cannot convert untyped value 'true' to 'E' from 'untyped bool' f := BS{ true } ^~~^
Something more specific than what is already being displayed?
I don't think this is supposed to compile.
The PR does not make it compile.
My bad! Sorry.
An error message that you can't use
bool
in anint
bit set would be appropriate here./tmp/odin/crash/crash.odin(11:11) Error: Cannot convert untyped value 'true' to 'E' from 'untyped bool' f := BS{ true } ^~~^
Something more specific than what is already being displayed?
This seems fine then.
I don't think this is supposed to compile.
The PR does not make it compile.
An error message that you can't use
bool
in anint
bit set would be appropriate here./tmp/odin/crash/crash.odin(11:11) Error: Cannot convert untyped value 'true' to 'E' from 'untyped bool' f := BS{ true } ^~~^
Something more specific than what is already being displayed?
No, this is great. Thanks.
Found this when I switched a
struct
to be abit_set
. The following program fails an assertion: