stories icon indicating copy to clipboard operation
stories copied to clipboard

State union should fail on Argument normalization conflict.

Open proofit404 opened this issue 4 years ago • 0 comments

class A1State(State):
    v1 = Argument(is_integer)

class A2State(State):
    v1 = Argument(is_float)

NewState = A1State & A2State

The v1 argument in the NewState would fail on assignment. It can't be integer and float at the same time.

Checks:

  • conflict (error message shows between which states it happen & normalized values which are not equal)
  • in composition of thee layers

proofit404 avatar Apr 03 '21 01:04 proofit404