Scala-Android应用程序的一部分:
val contentValues = new ContentValues()
val value: Long = 123
contentValues.put("key", value)
它抛出异常:
ambiguous reference to overloaded definition,
[ant:scalac] both method put in class ContentValues of type (x$1: String, x$2: Double)Unit
[ant:scalac] and method put in class ContentValues of type (x$1: String, x$2: Float)Unit
如果Android库中的 put(String, Long): Unit
必须在此处使用,它与Double和Float有什么关系?为什么不在这里申请?