TraitSlotConst is not callable

This commit is contained in:
Jindra Petřík
2025-06-15 22:05:16 +02:00
parent 551b0e45a5
commit acfc74e9e9

View File

@@ -1158,6 +1158,9 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
type = typeToPath(ti.returnType);
callType = typeToPath(ti.callReturnType);
}
if (ti.trait instanceof TraitSlotConst) {
callType = null;
}
if (ti.trait instanceof TraitMethodGetterSetter) {
TraitMethodGetterSetter tmgs = (TraitMethodGetterSetter) ti.trait;
if (tmgs.kindType == Trait.TRAIT_SETTER) {