MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.3k stars 328 forks source link

RequireExplicitMapping option fails the compilation for same type-to-type mapping #531

Open jvmlet opened 1 year ago

jvmlet commented 1 year ago

To reproduce :

 TypeAdapterConfig.GlobalSettings.RequireExplicitMapping = true;
class B{ 
 public int id;
}
[Mapper]
public interface IDemoMapping {
    B Map(B b);
}