aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/assign_to_call_result_field.elna
blob: 509b2dd9cd9f8197022890894a61ae8e3886973b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.