Skip to content

Commit cfeab82

Browse files
committed
[test] map lookup in FunctionTypeInElementContentTest
1 parent 4451e99 commit cfeab82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

exist-core/src/test/java/org/exist/xquery/FunctionTypeInElementContentTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public void mapConstructor() throws XMLDBException {
9999
assertCompilationError(query, error);
100100
}
101101

102+
@Test
103+
public void mapConstructorLookup() throws XMLDBException {
104+
final String query = "element test { map {1:1}?1 }";
105+
assertCompilationSuccess(query);
106+
}
107+
102108
/**
103109
* sequence in enclosed expression with only a function type
104110
*/

0 commit comments

Comments
 (0)