Can not set bitstring value in defstruct in Elixir 1.18, is this a bug?

After update elixir to 1.18 gots an error

** (ArgumentError) argument error

This error has no error stack or error line.

After a few hours debug, the error is occurred at this code

defstruct value: <<0::4>>

In version 1.18, bitstring can not be set in defstruct.
This is not in the release note, I’m not sure this is a new feature or bug.

2 Likes

I have analysed the problem and created a bug report:

7 Likes