Detect ~> misuse and suggest fix, fixes #2476