My guess is that line 15 `this.resourceId = resour...
# announcements
w
My guess is that line 15
this.resourceId = resourceId
points to the same property. You are executing
apply(block)
so inside block
this
is an
Args
and it shadows `Test`'s resource id property. If you type this code in Intellij Idea, you'll see a warning that
resourceId: Long
in line 13 is never used. But change the name in lines 13 and 15 and it should work, result of line 20 is - as I assume - a map
{RESOURCE_ID=1}
.