diff --git a/symbol table.cs b/symbol table.cs
index 99158ac..26fd069 100644
--- a/symbol table.cs	
+++ b/symbol table.cs	
@@ -129,7 +129,7 @@ namespace arookas
 		public override void Compile(sunContext context)
 		{
 			Offset = context.Text.Offset;
-			context.Scopes.Push();
+			context.Scopes.Push(sunScopeType.Function);
 			foreach (var parameter in Parameters)
 			{
 				context.DeclareParameter(parameter);