ab-top-level.pk3:
zscript.a:
Code: Select all
Class A { int i; }Code: Select all
Class B : A { int i; }zscript.txt:
Code: Select all
version "3.2.0"
#include "a.zsc"
#include "b.zsc"Code: Select all
Class A { int i; }Code: Select all
Class B : A { int i; }When ab-included.pk3 is loaded, GZDoom produces the following message:
Code: Select all
ab-included.pk3:b.zsc, line 1: Attempt to redefine 'i'
ab-included.pk3:a.zsc, line 1: Original definition is hereNow the twist: ab-top-level.pk3 is loaded without errors! I'm not sure how the two files are merged together, but they are both loaded.
Expected result: loading attempt of ab-top-level.pk3 produces error about 'i' redefinition.
Actual result: ab-top-level.pk3 is loaded fine.
