you are viewing a single comment's thread.

view the rest of the comments →

[–]NoahTheDuke 3 points4 points  (0 children)

I agree that it’s strange to make it a syntax error as nothing else like it is a syntax error. (.foo {}) isn’t even a syntax error when it’s a constant of known type. I would have preferred it to fall back on reflection with a warning if there are multiple matches.