The difference between colon ( : ) and dot ( . ) is that the former one pass "self" as the first parameter.
So, platform.window:invalidate() should be equivalent to platform.window.invalidate(platform.window) & that's why is saying that the first argument is wrong on the image you posted.