File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -7676,6 +7676,20 @@ error: unknown unary operator '>'
76767676obj[#]
76777677 ^
76787678error: unexpected character
7679+ (1+'').a
7680+ ^~~~~~
7681+ error: no overload of '+' accepts the provided types (int,string)
7682+ note: available overloads:
7683+ +(string,string)
7684+ +(float,float)
7685+ +(float,int)
7686+ +(int,float)
7687+ +(int,int)
7688+ +(float)
7689+ +(int)
7690+ ''.a
7691+ ^~
7692+ error: expected object, got string
76797693'"
76807694^~
76817695error: unterminated string
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ TEST_CASE("object access", "[object]") {
6464 CHECK_ERROR (" obj[(]" , vars);
6565 CHECK_ERROR (" obj[>]" , vars);
6666 CHECK_ERROR (" obj[#]" , vars);
67+ CHECK_ERROR (" (1+'').a" , vars);
68+ CHECK_ERROR (" ''.a" , vars);
6769 }
6870
6971 SECTION (" good" ) {
You can’t perform that action at this time.
0 commit comments