killme2008 / killme2008/aviatorscript

通过take_while获取集合中符合条件的数组后,取其中某个元素的属性报错,用了引用变量也不行

Open
#606 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.2k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

![4d3f6db5249e59790b6ce85d2a29e82](https://github.com/killme2008/aviatorscript/assets/129827905/bbc2f1bf-4118-41c0-be2e-5c1561f9e3f3)
![0fb87152a37a0fe6117be74523ccebf](https://github.com/killme2008/aviatorscript/assets/129827905/9541a0db-609a-463c-8743-9c5cf41cf032)
![fed06bb0e35b4da75d6013a0f12583c](https://github.com/killme2008/aviatorscript/assets/129827905/907a7a2b-6f82-45fb-af7b-aec8a3ddf6ba)
使用take_while 取出所有的主手术,然后取了第一个元素可以打印,再取第一个元素的属性后报错,换了几种方案都不行

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the take_while expression shown in the issue screenshots and capture the complete error message. Trace how the take_while result is represented when accessing the first element's property. Done means the reported property access works, or the failure has a clear diagnostic and a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.