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
When run, this program crashes with a SIGSEGV, but not when cursor inference is disabled. Found in combparser Nimble package.
Example
typeErrorNodeKind=enumBranch, LeafError=refobjectcase kind: ErrorNodeKind ofBranch:
left: Error
right: Error ofLeaf:
discardMaybe=object
errors: Errorprocplus(): Maybe=let lresult =Maybe()
let lerrors = lresult.errors
var rerrors: Error# This block is requiredblock:
let rresult =Maybe(errors: Error(kind: Leaf))
rerrors = rresult.errors
result.errors =Error(kind: Branch, left: lerrors, right: rerrors)
let r1 =plus()
doAssert r1.errors.kind ==BranchdoAssert r1.errors.right.kind ==Leaf
Current Output
/home/dian/Things/Nim/hello.nim(27) hello
/home/dian/Things/Nim/lib/system/assertions.nim(30) failedAssertImpl
/home/dian/Things/Nim/lib/system/assertions.nim(23) raiseAssert
/home/dian/Things/Nim/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: /home/dian/Things/Nim/hello.nim(27, 10) `r1.errors.right.kind == Leaf` [AssertionDefect]
Error: execution of an external program failed: '/home/dian/Things/Nim/hello '
Expected Output
No output
Nim Compiler Version 1.3.5 [Linux: amd64]
Compiled at 2020-07-29
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: b2a1944587bd23f87d05ed20cf33dd11c4c86e26
active boot switches: -d:release -d:danger
The text was updated successfully, but these errors were encountered:
When run, this program crashes with a SIGSEGV, but not when cursor inference is disabled. Found in
combparser
Nimble package.Example
Current Output
Expected Output
No output
The text was updated successfully, but these errors were encountered: