You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the user must write all type parameters explicitly, for both constructor calls and transaction calls. However, as in Java, this could usually be inferred:
contract A {}
contract B[X@s] { }
main contract Main {
transaction test() {
// This should be equivalent to the below code:
B[A] b = new B[A](new A());
B[A] b2 = new B[](new A()); // Java diamond-operator-style
// or
B[A] b2 = new B(new A()); // Scala-style
}
}
The text was updated successfully, but these errors were encountered:
Currently, the user must write all type parameters explicitly, for both constructor calls and transaction calls. However, as in Java, this could usually be inferred:
The text was updated successfully, but these errors were encountered: