SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

Purity false positive on assignment to proc argument

Open SpaceManiac opened this issue 3 years ago • 0 comments

/obj/proc/foo(turf/T)
    if (!T)
        T = get_turf(src)  // Generates a warning when it shouldn't

For the purposes of X = Y expressions, arguments should be the same as local variables.

SpaceManiac avatar Dec 24 '20 20:12 SpaceManiac