Skip to content

Commit

Permalink
[fix] 修复为值类型bean的可空类型字段生成c#代码时未包含?引发编译错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed Mar 6, 2024
1 parent fccae1b commit c848a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Luban.CSharp/TypeVisitors/IsRawNullableTypeVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public override bool Accept(TMap type)

public override bool Accept(TBean type)
{
return true;
return !type.DefBean.IsValueType;
}
}

0 comments on commit c848a05

Please sign in to comment.