Parser.st
changeset 4103 2536fe3291dd
parent 4094 baf56bc6897d
child 4107 c8ab4c955842
child 4115 27e61b5abc1e
--- a/Parser.st	Sat Jan 28 18:08:03 2017 +0100
+++ b/Parser.st	Sun Jan 29 12:55:36 2017 +0100
@@ -11213,7 +11213,8 @@
         (classToCompileFor notNil
         and:[classToCompileFor isMeta not
         and:[classToCompileFor isBuiltInClass not
-        and:[(parser isDoIt not)]]]) ifTrue:[
+        and:[classToCompileFor theNonMetaclass isSharedPool not
+        and:[(parser isDoIt not)]]]]) ifTrue:[
             list add: #InstanceVariable.
         ].
     ] ifFalse:[
@@ -11226,7 +11227,11 @@
                     list add: #ClassInstanceVariable.
                 ].
             ].
-            list addAll: #( #ClassVariable #PrivateClass ).
+            (classToCompileFor notNil and:[ classToCompileFor theNonMetaclass isSharedPool]) ifTrue:[
+                list addAllFirst: #( #ClassVariable nil ).
+            ] ifFalse:[   
+                list addAll: #( #ClassVariable #PrivateClass ).
+            ]
         ]
     ].