Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin 使用 FragPageAdapterVp2NoScroll add() 泛型问题 #5

Open
qianxl9 opened this issue Jan 12, 2021 · 1 comment
Open

Kotlin 使用 FragPageAdapterVp2NoScroll add() 泛型问题 #5

qianxl9 opened this issue Jan 12, 2021 · 1 comment

Comments

@qianxl9
Copy link

qianxl9 commented Jan 12, 2021

kotlin 直接使用 mFragmentPagerAdapter?.add(list) 编译会报 Not enough information to infer type variable W。麻烦大佬优化下

@330wuyanzu
Copy link

你要提供完整的泛型表述,kotlin的泛型在编译后会被擦除的,这些IDE都会提示你的,你不看吗??

fragmentPageAdapter.add<IBaseTabPageAdapter<String, TabViewHolder>>(list)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants