mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
@@ -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)[]
|
||||
@@ -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))
|
||||
Reference in New Issue
Block a user