Index: trunk/src/prolang.y
===================================================================
--- trunk/src/prolang.y	(Revision 2314)
+++ trunk/src/prolang.y	(Arbeitskopie)
@@ -5018,6 +5018,10 @@
     }
 
     ident = make_shared_identifier(name, I_TYPE_UNKNOWN, 0);
+    
+    /* Lfuns implementing inline closures should not be callable
+       without the closoure and also not be overrideable.*/
+    returntype.typeflags |= TYPE_MOD_NO_MASK | TYPE_MOD_PRIVATE;
 
     def_function_typecheck(returntype, ident, MY_TRUE);
 #ifdef DEBUG_INLINES
