BaseXdb/basex — Issue #260: Not-in-scope-variable is accepted and referenced
Author: ChristianGruen
Created: 2011-11-11 16:40:09+00:00
State: open
Labels: bug, XQuery

```xquery
let $d := copy $e := modify () return $e
return $e
```
_______________________________

java.lang.NullPointerException
org.basex.query.expr.VarRef.comp(VarRef.java:42)
org.basex.query.expr.GFLWOR.comp(GFLWOR.java:121)
org.basex.query.expr.FLWR.comp(FLWR.java:31)
org.basex.query.QueryContext.compile(QueryContext.java:260)
org.basex.query.QueryProcessor.compile(QueryProcessor.java:106)