Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.7.6
-
None
-
None
Description
From http://groovy.329449.n5.nabble.com/Change-in-contains-behavior-in-1-7-6-vs-1-7-5-td3367327.html:
Groovy 1.7.5:
def x = [null] as String[] println x[0] == null // true println x[0]?.length() // null
Groovy 1.7.6:
def x = [null] as String[] println x[0] == null // false println x[0]?.length() // 4