Skip to content

Commit 659bb9e

Browse files
committed
Update PolymodScriptManager.hx
1 parent 46358ad commit 659bb9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

polymod/hscript/_internal/PolymodScriptManager.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ class PolymodScriptManager
457457

458458
if (imports.exists(superClassPath) || importsToValidate.exists(superClassPath))
459459
{
460-
var extendImport = imports.get(superClassPath) ?? importsToValidate.get(superClassPath);
461-
if (extendImport.cls == null)
460+
var extendImport = imports.get(superClassPath);
461+
if (extendImport != null && extendImport.cls == null)
462462
Polymod.error(SCRIPT_PARSE_ERROR, 'expected a class: ${superClassPath}', origin);
463463

464464
switch (extend)

0 commit comments

Comments
 (0)