Merge branch 'devel' of github.com:nim-lang/Nim into devel
This commit is contained in:
commit
d4cdd92bc9
10 changed files with 69 additions and 776 deletions
|
|
@ -4,7 +4,8 @@ discard """
|
|||
44 3
|
||||
more body code
|
||||
yes
|
||||
yes'''
|
||||
yes
|
||||
block expression works'''
|
||||
"""
|
||||
|
||||
template x(body): untyped =
|
||||
|
|
@ -50,3 +51,11 @@ let format =
|
|||
else:
|
||||
echo "Texture Format Unknown, assuming RGB" #This echo causes an error
|
||||
TextureInternalFormat.RGB
|
||||
|
||||
# Block as expressions #3827
|
||||
block:
|
||||
let x = block:
|
||||
var y = 2
|
||||
echo "block expression works"
|
||||
y*y
|
||||
doAssert x == 4
|
||||
Loading…
Add table
Add a link
Reference in a new issue