-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* `or_null` is beta * fix existing or-null tests * `or_null` is not stable * format * fix exports * accept test_iarray_typeopt * more tests * beta universe instead of alpha --------- Co-authored-by: Diana Kalinichenko <[email protected]>
- Loading branch information
1 parent
4c486f4
commit bff2e7d
Showing
23 changed files
with
127 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module Int8 = Int8 | ||
module Int16 = Int16 | ||
module Int_wrapper = Int_wrapper | ||
module Or_null = Or_null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module Int8 = Int8 | ||
module Int16 = Int16 | ||
module Int_wrapper = Int_wrapper | ||
module Or_null = Or_null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
module Iarray = Iarray | ||
module IarrayLabels = IarrayLabels | ||
module Or_null = Or_null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
module Iarray = Iarray | ||
module IarrayLabels = IarrayLabels | ||
module Or_null = Or_null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(* TEST | ||
flags = "-extension-universe beta"; | ||
expect; | ||
*) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(* TEST | ||
flags = "-extension-universe beta"; | ||
expect; | ||
*) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(* TEST | ||
flags = "-extension-universe beta"; | ||
arch_amd64; | ||
not-macos; | ||
native; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(* TEST | ||
flags = "-extension-universe beta"; | ||
expect; | ||
*) | ||
|
||
|
8 changes: 4 additions & 4 deletions
8
testsuite/tests/typing-layouts-or-null/reexport_attr_unused.compilers.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
File "reexport_attr_unused.ml", line 8, characters 5-21: | ||
8 | let[@or_null_reexport] x = 5 | ||
File "reexport_attr_unused.ml", line 9, characters 5-21: | ||
9 | let[@or_null_reexport] x = 5 | ||
^^^^^^^^^^^^^^^^ | ||
Warning 53 [misplaced-attribute]: the "or_null_reexport" attribute cannot appear in this context | ||
|
||
File "reexport_attr_unused.ml", line 11, characters 6-22: | ||
11 | [@@@or_null_reexport] | ||
File "reexport_attr_unused.ml", line 12, characters 6-22: | ||
12 | [@@@or_null_reexport] | ||
^^^^^^^^^^^^^^^^ | ||
Warning 53 [misplaced-attribute]: the "or_null_reexport" attribute cannot appear in this context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
(* TEST | ||
flags = "-extension-universe beta"; | ||
*) | ||
|
||
let x = Null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
(* TEST | ||
flags = "-extension-universe stable"; | ||
expect; | ||
*) | ||
|
||
(* CR dkalinichenko: [or_null] is not available in [stable]. *) | ||
let x : int or_null = This 3 | ||
|
||
[%%expect{| | ||
Line 1, characters 12-19: | ||
1 | let x : int or_null = This 3 | ||
^^^^^^^ | ||
Error: Unbound type constructor "or_null" | ||
|}] | ||
|
||
(* CR dkalinichenko: [Null] and [This] are not available in [stable]. *) | ||
|
||
let y = Null | ||
|
||
[%%expect{| | ||
Line 1, characters 8-12: | ||
1 | let y = Null | ||
^^^^ | ||
Error: Unbound constructor "Null" | ||
|}] | ||
|
||
let z = This 5 | ||
|
||
[%%expect{| | ||
Line 1, characters 8-12: | ||
1 | let z = This 5 | ||
^^^^ | ||
Error: Unbound constructor "This" | ||
|}] | ||
|
||
(* CR dkalinichenko: [or_null_reexport] is not available in [stable]. *) | ||
|
||
type 'a my_or_null : value_or_null = 'a or_null [@@or_null_reexport] | ||
[%%expect{| | ||
Line 1, characters 40-47: | ||
1 | type 'a my_or_null : value_or_null = 'a or_null [@@or_null_reexport] | ||
^^^^^^^ | ||
Error: Unbound type constructor "or_null" | ||
Hint: Did you mean "my_or_null"? | ||
|}] |
Oops, something went wrong.