Comments (2)
I've encountered the same issue only on OCaml 5.1.0 (didn't encounter on OCaml 5.0.0).
This also applies to
(* Cycle_in_def *)
type a = b
and b = a
as well, which is supposed to report a "The definition of %s contains a cycle", but instead results in a stack overflow shortly after freezing.
What I found odd however, is the following works just fine:
(* Recursive_abbrev *)
type ('a, 'b) t = ('b, 'a) t
resulting in:
Error: The type abbreviation t is cyclic:
('a, 'b) t = ('b, 'a) t
but
(* Recursive_abbrev *)
type ('a, 'b) t = ('a, 'b) t
causes a stack overflow.
Seems to work fine in the ocaml repl as well
from utop.
Occurs with dune as well, but seems to work on 5.2.0.
from utop.
Related Issues (20)
- Completion broken when running utop from emacs HOT 3
- doom-emacs *utop* buffer
- dune utop in emacs is not working
- Feature request: automatically reload/recompile changed files in `dune utop`
- Cannot install using opam or paru HOT 3
- utop should't crash when the library you load has the same name as utop's dependencies HOT 1
- Consistent Formatting of UTop/Utop/utop
- OCaml 5.2 support HOT 1
- Emacs doesn't automatically open .ocamlinit in utop HOT 1
- Inform users `utop` is missing on M-x utop
- type aliases weird behavior HOT 2
- Utop setting Sys.interactive to false when running script
- History silently not saved between sessions if parent directory of history file doesn't exist
- Colors not loaded from `~/.config/utop/utoprc`
- Unable to get `#edit_mode_vi` to work HOT 3
- `#thread;;` does not always work
- A possible workaround for supporting camlp5 on UTop
- utop overwrites `Format.std_formatter` geometry
- utop crashes at terminal resize
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utop.