Description
With this code:
trait Extra {
String extra()
}
def extraList = [] as Extra
assert extraList.extra() == "I'm an extra method"
def extraMap = [:] as Extra
assert extraMap.extra() == "I'm an extra method"
I get error:
Caught: java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
at com.sun.proxy.$Proxy8.extra(Unknown Source)
at Extra$extra$0.call(Unknown Source)
at Runtime.run(Runtime.groovy:9)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)