This reverts commit 0f7f159a35.
This commit is contained in:
Andrey R (cooldome)
2020-11-17 18:54:14 +00:00
parent 0f7f159a35
commit 1663ad77e3
4 changed files with 2 additions and 26 deletions

View File

@@ -1,11 +0,0 @@
discard """
action: "compile"
"""
# bug #15623
block:
echo cast[ptr int](nil)[]
block:
var x: ref int = nil
echo cast[ptr int](x)[]

View File

@@ -1,13 +0,0 @@
discard """
output: '''0
0
'''
"""
# bug #15623
block:
echo cast[int](cast[ptr int](nil))
block:
var x: ref int = nil
echo cast[int](cast[ptr int](x))