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

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

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

end.