nimskull icon indicating copy to clipboard operation
nimskull copied to clipboard

set[int8] cannot initialized with values

Open blackmius opened this issue 4 months ago • 4 comments

Example

var a: set[int8] = {1}
var b: set[uint8] = {1}

Actual Output

Error: type mismatch: got 'set[range 0..65535(int)]' for '{1}' but expected 'set[int8]'

Expected Output

compiled

Workaround

var a: set[int8] = {1.int8}

blackmius avatar Mar 28 '24 10:03 blackmius