`new F().x` is parsed as `new (F().x)` instead of `(new F()).x`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start by finding the parser entry point for new expressions and how it handles following member access or indexing; the issue does not name files or tests. Use the supplied Rascal snippet as a reproducer and compare new F().proto with (new F()).proto; done means the unparenthesized property and index forms behave as expected.
Written by the indexing model from the issue text.
Description
Version: 0.3.6
When compiling the following code with Rascal and running:
function F() {
trace("F called, this is " + (this == _root ? "_root" : "new object"));
this.prop = "prop";
}
F.prototype.proto = "proto";
trace(new F().proto); // "undefined", expected "proto"
trace((new F()).proto); // "proto", as expected
trace(new F().prop); // "underfined", expected "prop"
trace(new F()["proto"]); // "undefined", expected "proto"
- Dominant language
- Rust
- Stars
- 22
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Dinnerbone/Rascal
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Dinnerbone/Rascal#91 · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Dinnerbone/Rascal#88 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Dinnerbone/Rascal#76 ·
-
Difficulty 4/5 1-2 days Newbie friendliness 48/100
Dinnerbone/Rascal#71 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Dinnerbone/Rascal#1 ·
All issues in Dinnerbone/Rascal
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug i18n priority: medium ui
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
storytold/craft-anything#983 · 1 comment ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pbakaus/impeccable#1328 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
higress-group/HiRoute#405 ·
Maintainers usually reply within 1 day
-
rust_analyzer flycheck: no CLI way to enable clippy from `check.overrideCommand`Possibly taken @TrapsterDK claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bazelbuild/rules_rust#4392 ·
Maintainers usually reply within 2 days