Browse Source

Fixed Global Expressions not being captureable

Is there any reason why not to?
kindlich 5 years ago
parent
commit
b9a8c490d2
No known key found for this signature in database

+ 6
- 4
CodeModel/src/main/java/org/openzen/zenscript/codemodel/partial/PartialGlobalExpression.java View File

@@ -9,10 +9,7 @@ import java.util.List;
9 9
 import org.openzen.zencode.shared.CodePosition;
10 10
 import org.openzen.zencode.shared.CompileException;
11 11
 import org.openzen.zenscript.codemodel.FunctionHeader;
12
-import org.openzen.zenscript.codemodel.expression.CallArguments;
13
-import org.openzen.zenscript.codemodel.expression.Expression;
14
-import org.openzen.zenscript.codemodel.expression.GlobalCallExpression;
15
-import org.openzen.zenscript.codemodel.expression.GlobalExpression;
12
+import org.openzen.zenscript.codemodel.expression.*;
16 13
 import org.openzen.zenscript.codemodel.scope.TypeScope;
17 14
 import org.openzen.zenscript.codemodel.GenericName;
18 15
 import org.openzen.zenscript.codemodel.type.StoredType;
@@ -63,4 +60,9 @@ public class PartialGlobalExpression implements IPartialExpression {
63 60
 	public StoredType[] getTypeArguments() {
64 61
 		return typeArguments;
65 62
 	}
63
+
64
+	@Override
65
+	public IPartialExpression capture(CodePosition position, LambdaClosure closure) {
66
+		return this;
67
+	}
66 68
 }

Loading…
Cancel
Save