Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
4
Task/Copy-a-string/OCaml/copy-a-string-3.ml
Normal file
4
Task/Copy-a-string/OCaml/copy-a-string-3.ml
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