Skip to content

Commit 6006ee3

Browse files
dkalinichenko-jsd-kalinichenkogoldfirere
authored
flambda-backend: Implement the nullability axis for jkinds (#2731)
* Minimal * tests * Default more types to non-null * format * Creation reasons * Comments * Tests * CR * Update variables test * Comments * Consistent naming * Update ocaml/testsuite/tests/typing-layouts-or-null/variables.ml Co-authored-by: Richard Eisenberg <[email protected]> * Tests * More tests * Remove redundant tests * fix * Rename to `concrete_default_creation_reason` * Refactor mode crossing * `Maybe_null` * Update tests * Format --------- Co-authored-by: Diana Kalinichenko <[email protected]> Co-authored-by: Richard Eisenberg <[email protected]>
1 parent 6348826 commit 6006ee3

File tree

14 files changed

+1312
-100
lines changed

14 files changed

+1312
-100
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
(* TEST
2+
flags = "-extension layouts_alpha";
3+
expect;
4+
*)
5+
6+
(* CR layouts v3.0: array type arguments should be [any_non_null]: *)
7+
8+
type t_any : any
9+
10+
type should_fail = t_any array
11+
12+
[%%expect{|
13+
type t_any : any
14+
type should_fail = t_any array
15+
|}]
16+
17+
type t_value_or_null : value_or_null
18+
19+
type should_fail = t_value_or_null array
20+
21+
[%%expect{|
22+
type t_value_or_null : value_or_null
23+
type should_fail = t_value_or_null array
24+
|}]

0 commit comments

Comments
 (0)