Add a failing test for #show with -short-paths.

master
Jeremy Yallop 2020-08-05 10:49:13 +01:00
parent 1964506dbe
commit aa06fa819e
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
(* TEST
flags = " -short-paths "
* expect
*)
(* This is currently just a regression test for the bug
reported here: https://github.com/ocaml/ocaml/issues/9828 *)
#show list;;
[%%expect {|
type 'a list = [] | (::) of 'a * 'a list
|}];;
type 'a t;;
#show t;;
[%%expect {|
type 'a t
type 'a t
|}];;