aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_to_call_result_field.elna
blob: e4995e5ed349349c49a5382457dbad5dc405b7c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
program()
type
  R = record
    x: Int
  end

proc make() -> R
var
  result: R
begin
  result.x := 1
return result

begin
  make().x := 5 (* @Error Expression of type 'Int' is not addressable *)
end.