cost 321 ms
Scala 2 type inference

def test[T: ClassTag]: T = { println(classTag[T]) null.asInstanceOf[T] } val x1: Int = test val x2: Int = test[Int] prints I would expect the ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM