From 81295cbfe1dc53fe8ab272156a80535afe98f6d0 Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 14 Sep 2022 12:20:20 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E5=AF=B9=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E7=B1=BB=E5=9E=8B=E7=9A=84element=20type=E4=B8=BAexte?= =?UTF-8?q?rnal=20type=E6=97=B6=EF=BC=8C=E7=94=9F=E6=88=90=E7=9A=84cs?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF=E5=AF=B9external=20type?= =?UTF-8?q?=E8=B0=83=E7=94=A8=3F.Resove=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Cfg/Source/Defs/DefField.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Luban.Job.Cfg/Source/Defs/DefField.cs b/src/Luban.Job.Cfg/Source/Defs/DefField.cs index 3958962..b92f8ae 100644 --- a/src/Luban.Job.Cfg/Source/Defs/DefField.cs +++ b/src/Luban.Job.Cfg/Source/Defs/DefField.cs @@ -73,7 +73,7 @@ namespace Luban.Job.Cfg.Defs } public bool HasRecursiveRef => (CType is TBean tb && HostType.AssemblyBase.GetExternalTypeMapper(tb) == null) - || CType.ElementType?.IsBean == true; + || (CType.ElementType is TBean eb && HostType.AssemblyBase.GetExternalTypeMapper(eb) == null); public string CsRefTypeName => RefType.Apply(CsDefineTypeName.Ins);