Inferred void class operations are never checked against the starter's return type
Maintainer antworten meist innerhalb von 1 Tag
@papaya0112 arbeitet bereits daran.
Seit 26.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 236
- Forks
- 153
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 187
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sysprog21/codetrial
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Unify Java harness validation error messagesEvtl. vergeben @weichieh0204 hat das heute übernommen. Offen
sysprog21/codetrial#872 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteEvtl. vergeben @BOBOGUAGUA428 hat das heute übernommen. Offen
sysprog21/codetrial#869 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Highway Billboard Leasing accepts a solution that greedily leases the largest offer firstEvtl. vergeben @PeteChiang1211 hat das heute übernommen. Offen
sysprog21/codetrial#868 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in sysprog21/codetrial
Ähnliche Issues
-
bug bugfix
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
storytold/photocraft#17140 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
bug command Java Edition protocol
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Pumpkin-MC/Pumpkin#4733 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 2 Tagen
-
area:parity status:ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
neilsh/stunt-reel#1133 ·
Maintainer antworten meist innerhalb von 1 Tag