| 1 |
Line 7, characters 15-17: |
| 2 |
7 | let invalid = "\99" ;; |
| 3 |
^^ |
| 4 |
Warning 14 [illegal-backslash]: illegal backslash escape in string. |
| 5 |
Hint: Single backslashes \ are reserved for escape sequences (\n, \r, ...). |
| 6 |
Did you check the list of OCaml escape sequences? |
| 7 |
To get a backslash character, escape it with a second backslash: \\. |
| 8 |
|
| 9 |
val invalid : string = "\\99" |
| 10 |
Line 1, characters 15-19: |
| 11 |
1 | let invalid = "\999" ;; |
| 12 |
^^^^ |
| 13 |
Error: Illegal backslash escape in string or character (\999): 999 is outside the range of legal characters (0-255). |
| 14 |
Line 1, characters 15-20: |
| 15 |
1 | let invalid = "\o777" ;; |
| 16 |
^^^^^ |
| 17 |
Error: Illegal backslash escape in string or character (\o777): o777 (=511) is outside the range of legal characters (0-255). |
| 18 |
Line 1, characters 15-17: |
| 19 |
1 | let invalid = "\o77" ;; |
| 20 |
^^ |
| 21 |
Warning 14 [illegal-backslash]: illegal backslash escape in string. |
| 22 |
Hint: Single backslashes \ are reserved for escape sequences (\n, \r, ...). |
| 23 |
Did you check the list of OCaml escape sequences? |
| 24 |
To get a backslash character, escape it with a second backslash: \\. |
| 25 |
|
| 26 |
val invalid : string = "\\o77" |
| 27 |
Line 1, characters 15-17: |
| 28 |
1 | let invalid = "\o99" ;; |
| 29 |
^^ |
| 30 |
Warning 14 [illegal-backslash]: illegal backslash escape in string. |
| 31 |
Hint: Single backslashes \ are reserved for escape sequences (\n, \r, ...). |
| 32 |
Did you check the list of OCaml escape sequences? |
| 33 |
To get a backslash character, escape it with a second backslash: \\. |
| 34 |
|
| 35 |
val invalid : string = "\\o99" |
| 36 |
|