Alfenstein8 / Alfenstein8/kaempe

Bug: function and method returns are not checked correctly

Offen
#152 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug validation
Vorherrschende Sprache
OCaml
Sterne
4
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When a function has a return type, we only check in the outer function scope, and only if a return statement is found. This means that a function which should return a variable, but that does not have a return statement will go through as valid, this is undefined behavior currently.

The validator also does not check that all code paths in a function returns the correct value.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.