When using the using foo for type
syntax, the methods of a type will return an empty tuple instead of the explicit type defined within the library. Why?
Currently using Solc v0.3.2.
Example:
library foo {
// Should Return a string
function greet(string storage self) returns (string) {
return "Hello";
}
}
contract Greeter {
using foo for string;
string name = "lary";
function say() constant returns (string) {
return name.greet();
}
}
Returns:
// Error: Different number of arguments in return statement
// name.greet => type function (string storage pointer) returns ()