Skip to content

Inline expect failures should not halt the programΒ #9323

@Anton-4

Description

@Anton-4

Just like in the old compiler, failed inline expects should not halt the program, failures should be reported and execution should continue.

So, "Hello, World!" should still be printed in this case:

roc on ξ‚  main [!] is πŸ“¦ v0.0.1 via πŸ¦€ via β†― v0.15.2 
❯ ./zig-out/bin/roc test/echo/hello.roc --opt=interpreter
Expect failed: 4 == 5
Roc crashed: 4 == 5

roc on ξ‚  main [!] is πŸ“¦ v0.0.1 via πŸ¦€ via β†― v0.15.2 
❯ ./zig-out/bin/roc test/echo/hello.roc --opt=dev        
Dev backend execution error: error.DevEvaluatorFailed

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions