ID:2421598
 
Resolved
The ?. operator did not do proper type checking for procs when it was able to.
BYOND Version:512
Operating System:Linux
Web Browser:Firefox 64.0
Applies to:Dream Maker
Status: Resolved (512.1463)

This issue has been resolved.
Descriptive Problem Summary:
object?.function()
has no type-safety checks and will compile as long as
function()
exists somewhere in the code.

Code Snippet (if applicable) to Reproduce Problem:

/mob/proc/test123()
return 1

var/obj/O = new
O.test123() // this does not compile since test123() is a mob proc
O?.test123() // this compiles anyway


Workarounds:
Avoid using the ?. operator
Lummox JR resolved issue with message:
The ?. operator did not do proper type checking for procs when it was able to.