if foo.something foo.instance_eval "SYNTAX ERROR" end
But perhaps what he meant was not a syntax error, but things like:
if foo.something foo.something_misspelled = bar end
But perhaps what he meant was not a syntax error, but things like:
Which isn't technically a syntax error, but that code is invalid in a statically typed language.