mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 16:14:20 +00:00
Semfold for nil cast (#16030)
* bring back the semfold of nil * remove space * fix test * proc type can't be dereferenced
This commit is contained in:
@@ -70,6 +70,7 @@ block:
|
||||
static:
|
||||
doAssert cast[RootRef](nil).repr == "nil"
|
||||
|
||||
block:
|
||||
static:
|
||||
doAssert cast[cstring](nil).repr == "nil"
|
||||
# Issue #15730, not fixed yet
|
||||
# block:
|
||||
# static:
|
||||
# doAssert cast[cstring](nil).repr == "nil"
|
||||
|
||||
Reference in New Issue
Block a user