Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/Copy-a-string/OCaml/copy-a-string-3.ocaml
Normal file
4
Task/Copy-a-string/OCaml/copy-a-string-3.ocaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(* Transition-period synonymy between types, explicit type annotations are just for emphasis *)
|
||||
let dst1 : string = Bytes.copy (src : bytes)
|
||||
let dst2 : bytes = Bytes.copy (src : string)
|
||||
(* fails to compile with -safe-string *)
|
||||
Loading…
Add table
Add a link
Reference in a new issue