Throw complier exception when method names start with `.` special

Description

I made the following mistake when writing some deftype code:

1 2 3 (deftype Foo [] Object (.bar [] ...))

This produced no compiler errors and generated bad code which resulted in a bit of confusion.

It’s true that this is a specific case of a more general problem around codegen for . and new. So it might be worthwhile to enumerate other similar cases where . can be easily disallowed. These cases have to be syntactical, not expression oriented - so there probably aren't really that many.

Environment

None

Status

Assignee

Seçkin Kükrer

Reporter

David Nolen

Labels

None

Approval

None

Patch

Code and Test

Priority

Minor
Configure