let func obj num =
if num = 0 then obj#func0
else obj#func1
class myClass0 =
object
method func0 = print_string "MyClass0: func0"
end
let x = object
method func0 = print_string "Anonymous class: func0"
method func1 = print_string "Anonymous class: func1"
end
let y = new myClass0
let _ = func x 0;
func x 1;
func y 0