Bug 18203 – Accessing accessing out parameters in an 'in' contract

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-07T10:56:25Z
Last change time
2024-12-13T18:56:05Z
Assigned to
No Owner
Creator
Iain Buclaw
Moved to GitHub: dmd#17831 →

Comments

Comment #0 by ibuclaw — 2018-01-07T10:56:25Z
--- int foo(out int bar) in { somevar = bar; // This should be an error. somefunc(bar); // This should be an error. assert(bar == 0); // This should be an error. } do { return 0; } --- See comments from https://github.com/dlang/dmd/pull/7553
Comment #1 by robert.schadek — 2024-12-13T18:56:05Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17831 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB