ByteX icon indicating copy to clipboard operation
ByteX copied to clipboard

常量内联 NoSuchFieldError

Open lkang08 opened this issue 2 years ago • 2 comments

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

lkang08 avatar Aug 10 '22 07:08 lkang08

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

TellH avatar Sep 29 '22 03:09 TellH

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

lkang08 avatar Nov 23 '22 07:11 lkang08