ARC: closure inside object constructor now works

This commit is contained in:
Araq 2019-11-13 19:55:05 +01:00 • committed by Andreas Rumpf
commit f22d3c75aa
3 changed files with 30 additions and 4 deletions

View file

@ -1,6 +1,6 @@
discard """
cmd: '''nim c --newruntime $file'''
errormsg: "'=' is not available for type <owned Widget>; requires a copy because it's not the last read of ':envAlt.b1()'; another read is done here: tuse_ownedref_after_move.nim(53, 4)"
errormsg: "'=' is not available for type <owned Button>; requires a copy because it's not the last read of ':envAlt.b1'; another read is done here: tuse_ownedref_after_move.nim(53, 4)"
line: 49
"""