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

Description

I made the following mistake when writing some deftype code:

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

Activity

Show:
Mike Fikes
August 19, 2019, 12:39 PM
Edited

(Older) CLJS-3152.patch doesn't apply on master.

Comments with author name shouldn't be included.

Seçkin Kükrer
August 19, 2019, 9:10 PM

Sorry for that.

The new Patch is on the task.

Mike Fikes
August 20, 2019, 1:01 AM

Assignee

Seçkin Kükrer

Reporter

David Nolen

Labels

None

Approval

None

Patch

Code and Test

Priority

Minor
Configure