#6939: add non-regression test.
parent
fa743fd605
commit
1c9e418b92
|
@ -0,0 +1,16 @@
|
|||
(***********************************************************************)
|
||||
(* *)
|
||||
(* OCaml *)
|
||||
(* *)
|
||||
(* Alain Frisch, LexiFi *)
|
||||
(* *)
|
||||
(* Copyright 2015 Institut National de Recherche en Informatique et *)
|
||||
(* en Automatique. All rights reserved. This file is distributed *)
|
||||
(* under the terms of the Q Public License version 1.0. *)
|
||||
(* *)
|
||||
(***********************************************************************)
|
||||
|
||||
|
||||
let rec x = [| x |]; 1.;;
|
||||
|
||||
let rec x = let u = [|y|] in 10. and y = 1.;;
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
# Characters 828-835:
|
||||
let rec x = [| x |]; 1.;;
|
||||
^^^^^^^
|
||||
Warning 10: this expression should have type unit.
|
||||
Characters 828-839:
|
||||
let rec x = [| x |]; 1.;;
|
||||
^^^^^^^^^^^
|
||||
Error: This kind of expression is not allowed as right-hand side of `let rec'
|
||||
# Characters 17-18:
|
||||
let rec x = let u = [|y|] in 10. and y = 1.;;
|
||||
^
|
||||
Warning 26: unused variable u.
|
||||
Characters 13-33:
|
||||
let rec x = let u = [|y|] in 10. and y = 1.;;
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
Error: This kind of expression is not allowed as right-hand side of `let rec'
|
||||
#
|
Loading…
Reference in New Issue