Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Potentially a compiler bug:
- # - A proc() without the Loop parameter doesn't crash the compiler
- # - a proc(l: Loop) will cause a consistent compiler crash ==> SIGSEGV: Illegal storage access. (Attempt to read from nil?)
- # Compiler is "Nim Compiler Version 0.10.1 (2014-11-10) [Linux: amd64]" from master branch
- type
- Loop* = ref object
- onBeforeSelect*: proc(l: Loop) # <== this (l: Loop) causes a compiler crash
Advertisement
Add Comment
Please, Sign In to add comment