Fix dot-syntax message inconsistency.

Property dot-syntax used for non-property method despite different
syntax used in the same method.