I am experimentin with Scala Macros, which are part of Scala 2.10, but as I try to compile (Using sbt) I get the following error:
[error] .../API.scala:9: not enough arguments for constructor OAuth:
(requestMethod: String, consumerSecret: String, consumerKey: String,
signatureMethod: String, version: String)jm.oauth.OAuth
[error] private val oauth = new OAuth(OAuth.POST, oauthConsumerSecret,
oauthConsumerKey, OAuth.HMAC_SHA1)
You can find the implementation of the OAuth
class here.
Is there any incompatibility between scala 2.10 and optional parameters?
The very same code, compiled with scala 2.9.1, worked perfectly.