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

常量内联 NoSuchFieldError #148

Open
lkang08 opened this issue Aug 10, 2022 · 2 comments
Open

常量内联 NoSuchFieldError #148

lkang08 opened this issue Aug 10, 2022 · 2 comments

Comments

@lkang08
Copy link

lkang08 commented Aug 10, 2022

加入常量内联后,kotlin中val定义的常量会找不到,const val定义的就没问题

@TellH
Copy link
Collaborator

TellH commented Sep 29, 2022

val定义的常量是怎么写的? 可以给个example吗

@lkang08
Copy link
Author

lkang08 commented Nov 23, 2022

val test = 123
const test1 = 456
上面这种写法定义的常量会找不到,下面这种写法的没问题

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