aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/case_non_constant.elna
blob: 2f19df8b3c81ecff8f8e4979fb69d03e797cba2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type
  R = record
    a: Int;
    b: Int
  end

var
  r: R
  x: R

begin
  x := r;
  case x of
    r: (* @Error Expected a constant expression *)
  end
end.