reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.09k stars 424 forks source link

support, inherit on objects since 4.06 #2606

Closed EduardoRFS closed 4 years ago

EduardoRFS commented 4 years ago

Since 4.06 OCaml supports inherit in objects, but there is no way to do that in Reason. This is really important as it makes functions + objects a full replacement of classes.

module type X  = sig type x = < x  > end
anmonteiro commented 4 years ago

supported since #2487

see https://github.com/facebook/reason/blob/master/formatTest/unit_tests/input/object.re#L47-L72