ID:2382095
 
BYOND Version:512.1435
Operating System:Windows 10 Home 64-bit
Web Browser:Firefox 60.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:

Changing the "parent_type" variable of a basic object (tested with /datum/, /obj) causes the compiler to hang and DM needs to be killed through task manager.

Numbered Steps to Reproduce Problem:
1. See code snippet.
2. Hit compile.

Code Snippet (if applicable) to Reproduce Problem:
/datum/
parent_type = /datum/

/world/New()
return


Expected Results:
DM to crash like in this code snippet :
/datum/test
parent_type = /datum/test

/world/New()
return

Which results in :
loading test.dme
error: compiler passed out (please report this bug)
test.dm:6:error: parent_type: compile failed (possible infinite cross-reference loop)
test.dm:6:error: /datum/test: compile failed (possible infinite cross-reference loop)
test.dmb - 2 errors, 0 warnings (7/8/18 12:26 am)

Actual Results:
Compiler hangs and does not show any output besides
loading test.dme


Does the problem occur:
Every time? Or how often? Everytime.
In other games? NA
In other user accounts? NA
On other computers? Yes.

When does the problem NOT occur? Never.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I believe it has always been here.

Workarounds:
None. Not a critical issue, but most likely a bug.

parent_typing /obj and /mob worked only months ago, we tried tested it on tg for a few days on a lark but never went down that path: https://github.com/tgstation/tgstation/pull/36608
I believe he misspoke in the OP. This happens specifically when you set the parent_type of a builtin type to itself.

EDIT: Turns out it also works if you tell a builtin type to inherit from one of its builtin children, such as:
/atom/parent_type = /area