mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
10 lines
193 B
D
10 lines
193 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail330.d(9): Error: variable `fail330.fun.result` cannot modify result `result` in contract
|
|
---
|
|
*/
|
|
|
|
int fun()
|
|
out(result) { result = 2; }
|
|
do { return 1; }
|