Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.21, 4.0.21
-
None
Description
Consider the following:
class C implements Map<String,String> { @Delegate Map<String,String> impl = [:] } def map = new C() assert map.entry == null assert map.empty == null assert map.class == null assert map.metaClass == null def test(C map) { assert map.entry == null assert map.empty == null assert map.class == null assert map.metaClass == null } test(new C())
The method-based test fails with "class" returning the map class. Something is different for local variable and parameter property expressions.