网站介绍:文章浏览阅读128次。Intro 在实际工作中,可能需要指定某些数据类型的相互转化,这时候会用到隐式转换和隐式函数。看一个Demo:class test(){ implicit def f1(d: Double): Int = { d.toInt } var x:Int=3.9}val testObj = new testtestObj.xwarning: t..._there was one feature warning
- 链接地址:https://blog.csdn.net/wendaomudong_l2d4/article/details/104744011
- 链接标题:ScalaNote14-隐式转换_there was one feature warning-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:3464
- 网站标签:there was one feature warning