Przeglądaj źródła

Fix using parent's members in TypeMembers

Background: For some classes the TypeId does not have the super class but the definition has. Now checking both
kindlich 5 lat temu
rodzic
commit
8bc801385c
Nie znaleziono w bazie danych klucza dla tego podpisu

+ 3
- 0
CodeModel/src/main/java/org/openzen/zenscript/codemodel/type/member/TypeMemberBuilder.java Wyświetl plik

530
 		if (definitionType.superType != null) {
530
 		if (definitionType.superType != null) {
531
 			cache.get(definitionType.superType.stored(type.getSpecifiedStorage()))
531
 			cache.get(definitionType.superType.stored(type.getSpecifiedStorage()))
532
 					.copyMembersTo(members, TypeMemberPriority.INHERITED);
532
 					.copyMembersTo(members, TypeMemberPriority.INHERITED);
533
+		} else if(definition.getSuperType() != null) {
534
+			cache.get(definition.getSuperType().stored(type.getSpecifiedStorage()))
535
+					.copyMembersTo(members, TypeMemberPriority.INHERITED);
533
 		} else {
536
 		} else {
534
 			getter(definition, OBJECT_HASHCODE, "objectHashCode", INT.stored);
537
 			getter(definition, OBJECT_HASHCODE, "objectHashCode", INT.stored);
535
 		}
538
 		}

Ładowanie…
Anuluj
Zapisz