Merge branch 'devel' into araq
This commit is contained in:
commit
bfaa329680
4 changed files with 22 additions and 5 deletions
18
tests/metatype/tcompilesregression.nim
Normal file
18
tests/metatype/tcompilesregression.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
discard """
|
||||
output: '''ok'''
|
||||
"""
|
||||
|
||||
# bug #5638
|
||||
|
||||
type X = object
|
||||
a_impl: int
|
||||
|
||||
proc a(x: X): int =
|
||||
x.a_impl
|
||||
|
||||
var x: X
|
||||
assert(not compiles((block:
|
||||
x.a = 1
|
||||
)))
|
||||
|
||||
echo "ok"
|
||||
Loading…
Add table
Add a link
Reference in a new issue