You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproducible on latest nightly (1805316) and previous builds.
Ready-for-testing project: bug.2165.zip
While working on the issue #926, I've encountered a situation in which compiler fails during codegen:
Failure during codegen of ?get__mState@?$Box@UDoor@bug2165@bf@@@@QEAA?AW4StateType@bug2165@bf@@XZ
in BOX_bug2165_Door:
Assert 'retCount == 1' failed on line 18284
MCBlock: entry:0
Excerpt:
classProgram{staticvoidMain(){IState<StateType>doorState=Build();Debug.WriteLine("{}",doorState.mState);// << Failure during codegendeletedoorState;}staticIState<StateType>Build(){returnnew box Door(.Opened);}}interfaceIState<T1>whereT1:enum{T1mState{get;set mut;}}structDoor:IState<StateType>{publicStateTypemState{get;set mut;}publicthis(StateTypestate){mState=state;}}enumStateType{Opened,Closed,}enumTriggerType{DoorHandle,}
The text was updated successfully, but these errors were encountered:
Hi there,
Reproducible on latest nightly (1805316) and previous builds.
Ready-for-testing project: bug.2165.zip
While working on the issue #926, I've encountered a situation in which compiler fails during codegen:
Excerpt:
The text was updated successfully, but these errors were encountered: