Open clbDream opened 6 years ago
Out-projected type 'MZBannerView<>!' prohibits the use of 'public open fun setPages(datas: (Mutable)List<T!>!, mzHolderCreator: MZHolderCreator<(raw) MZViewHolder<>!>!): Unit defined in com.zhouwei.mzbanner.MZBannerView'
banner.setPages(listBean, MZHolderCreator<BannerViewHolder> { BannerViewHolder() })
同问~ 楼主解决了么 #80 已解决
这个问题是因为kotlin里面不能识别泛型T,重写MZBannerView,带上泛型就可以了
Out-projected type 'MZBannerView<>!' prohibits the use of 'public open fun setPages(datas: (Mutable)List<T!>!, mzHolderCreator: MZHolderCreator<(raw) MZViewHolder<>!>!): Unit defined in com.zhouwei.mzbanner.MZBannerView'