Seite 1 von 1

ex04: Contract named "left", in function named "e1"

Verfasst: 23. Nov 2017 16:29
von GS-812

Code: Alles auswählen

 * @param operator
 * @param left
 * @param right
 

Code: Alles auswählen

BinaryExpression.create(BinaryOperator operator, final Expression e1, final Expression e2 )
Contract named "left" and in the function named "e1":
left = e1
right = e2

Is this a deliberate error?

Re: ex04: Contract named "left", in function named "e1"

Verfasst: 24. Nov 2017 16:41
von eichberg
This is an unfortunate IDE misconfiguration issue...

The parameters should be called left and right or the JavaDoc should be updated to refer to e1 and e2. I.e., the mapping is as specified in your case.