aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/record_constructor_const.elna
blob: 946105b90dffe9ad3d784fa69cdd05ae1f2a61c6 (plain)
1
2
3
4
5
6
7
8
9
10
module
type
  R = record
    x: Int
  end

var
  r := { const R; x: 1 } (* @Error Record constructor cannot have 'const' qualifier *)

end.