aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/case_type_mismatch.elna
blob: 9cdae38724cbb55abe0f910d894d7038288ad48d (plain)
1
2
3
4
5
6
7
8
9
var
  x: Int

begin
  case x of
    1: (* ok *)
  | true: (* @Error Invalid operands of type 'Int' and 'Bool' for operator = *)
  end
end.