You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1608 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Ah, c'est dur quand on veut utiliser tous les traits a la fois...
frouaix:/tmp$ cat x.ml
class foo = fun ?x ->
object
end
frouaix:/tmp$ ocamlc -v
The Objective Caml compiler, version 3.06+21 (2003-01-08)
Standard library directory: /usr/local/lib/ocamlexp/lib/ocaml
frouaix:/tmp$ ocamlc -c x.ml
File "x.ml", line 1, characters 17-18:
Warning: This optional argument cannot be erased
frouaix:/tmp$ ocamlc -pp camlp4o x.ml
File "x.ml", line 1, characters 16-18:
Parse error: [class_fun_def] expected after 'fun' (in [class_expr])
Preprocessor error
frouaix:/tmp$
--f
The text was updated successfully, but these errors were encountered:
Original bug ID: 1608
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Ah, c'est dur quand on veut utiliser tous les traits a la fois...
frouaix:/tmp$ cat x.ml
class foo = fun ?x ->
object
end
frouaix:/tmp$ ocamlc -v
The Objective Caml compiler, version 3.06+21 (2003-01-08)
Standard library directory: /usr/local/lib/ocamlexp/lib/ocaml
frouaix:/tmp$ ocamlc -c x.ml
File "x.ml", line 1, characters 17-18:
Warning: This optional argument cannot be erased
frouaix:/tmp$ ocamlc -pp camlp4o x.ml
File "x.ml", line 1, characters 16-18:
Parse error: [class_fun_def] expected after 'fun' (in [class_expr])
Preprocessor error
frouaix:/tmp$
--f
The text was updated successfully, but these errors were encountered: