[ issue 1290 ] fixed by checking for definitions by copatterns
[ issue 1290 ] test case
Merge branch 'maint-2.4.2'