Skip to content

Commit

Permalink
how did i manage to type that incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
hry-gh committed Nov 14, 2024
1 parent bcd565b commit b2fc84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/language/proc/istype.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description = "1 if Val is the same as, or a child type of, Type"
+++

```dm
var/atom/my_atom = new /obj(loc) // the variable is declared as an /atom, but we create an /obj
var/mob/my_atom = new /obj(loc) // the variable is declared as a /mob, but we create an /obj
if(istype(my_atom))
// this will not pass, as the inferred type is different from the actual type
Expand Down

0 comments on commit b2fc84e

Please sign in to comment.