Fix resolver not finding window expressions

This commit is contained in:
Simon Binder 2019-08-30 19:36:23 +02:00
parent 4af370f0cb
commit fcdbc309b7
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class ReferenceResolver extends RecursiveVisitor<void> {
@override
void visitAggregateExpression(AggregateExpression e) {
if (e.windowName != null && e.resolved != null) {
if (e.windowName != null && e.resolved == null) {
final resolved = e.scope.resolve<NamedWindowDeclaration>(e.windowName);
e.resolved = resolved;
}