ocaml/testsuite/tests/typing-objects/pr6123_bad.ml.reference

9 lines
352 B
Plaintext

# Characters 253-257:
let args = List.map (fun ty -> new argument(self, ty)) args_ty in
^^^^
Error: This expression has type < arguments : 'b; .. > as 'a
but an expression was expected of type 'a
Self type cannot escape its class
#