incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmuer <r...@apache.org>
Subject apply-method for language
Date Mon, 20 Jun 2011 15:57:38 GMT
Hi Henry

I'm trying to add some test for the implicit conversions (A separate
test-file so it doesn't interfere with the one you're writing) and I'm
unable to get implicit conversion for the apply-methods, did you ever
succeed using them?

zz>"hello"('en)
"hello"('en)
<console>:38: error: type mismatch;
 found   : java.lang.String
 required: ?{val apply: ?}
Note that implicit conversions are not applicable because they are
ambiguous:
 both method string2lit in object EasyGraph of type (str:
String)org.apache.clerezza.rdf.scala.utils.PlainLiteralScala
 and method augmentString in object Predef of type (x:
String)scala.collection.immutable.StringOps
 are possible conversion functions from java.lang.String to ?{val apply: ?}
       "hello"(en)

Cheers,
Reto

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message