object method warn : string -> unit end