ScalaNote14-隐式转换_there was one feature warning-CSDN博客

网站介绍:文章浏览阅读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