Inferred void class operations are never checked against the starter's return type
I maintainer di solito rispondono entro 1 giorno
@papaya0112 ci sta già lavorando.
Dal 26/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
posed in scripts/problem_bank/rules.py publishes each class operation's kind in methodReturnTypes from the cases alone: an operation is "void" when every expected value for it is null. The C++ and Java harnesses already drop whatever a "void" operation returns, and #849 makes the JavaScript and Python runners do the same. A value-returning operation whose cases all happen to expect null would therefore be published as void and stop being compared in all four languages, so any return would pass.
Nothing checks the inference today. The test #849 adds only holds each kind to the spelling "void" or "value" and to the operations the cases call; it cannot tell a wrong kind from a right one, because the expected values it builds read the same field the runners do. The starters already state the real type, for example void push(int value) and int top() in the C++ starter of Tentative Bid Ledger.
Comparing each inferred kind with the return type the C++ starter declares, next to the inference in rules.py or as a check in tests/test_gen_problems.py, would fail when such a judge is generated. All eight served class judges agree with their starters today, so the check refuses nothing now. This was raised in the review of #849 and left out of that change.
- Lingua principale
- Rust
- Stelle
- 236
- Fork
- 153
- Merge medio
- 1g 9h
- PR unite (30g)
- 187
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sysprog21/codetrial
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Unify Java harness validation error messagesForse già presa @weichieh0204 l’ha presa oggi. Aperta
sysprog21/codetrial#872 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteForse già presa @BOBOGUAGUA428 l’ha presa oggi. Aperta
sysprog21/codetrial#869 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Highway Billboard Leasing accepts a solution that greedily leases the largest offer firstForse già presa @PeteChiang1211 l’ha presa oggi. Aperta
sysprog21/codetrial#868 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sysprog21/codetrial
Issue simili
-
bug bugfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
storytold/photocraft#17140 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
-
bug command Java Edition protocol
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Pumpkin-MC/Pumpkin#4733 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
area:parity status:ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neilsh/stunt-reel#1133 ·
I maintainer di solito rispondono entro 1 giorno