When I tried to declare my variables using multiple assignment, it came up with the error
Multiple assignments not allowed in fields
class Ana {
def tmp = []
String subject
def (ini, sorted, full) = ['','',[:]]
Ana(subject) {
this.subject = subject
}
}
However, it shows no error when I declare them one by one.
Wondering why this is the case