Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix detection of TypeClass during bootstrap

  • Loading branch information...
commit aefbeda794e811ff81bc989f9e50ded8657185c9 1 parent d95eeda
@timfel timfel authored
View
2  src/packages/Maglev.package/RubyColon2Node.class/instance/walkWithScope.isDefinedQ..st
@@ -16,6 +16,7 @@ walkWithScope: aScope isDefinedQ: isQ
globAssoc := leftAssoc _valueNoAction
bootConstantLookup: name env: cst envId .
].
+ isTypeClass := (name == #Type and: [ln name == #Maglev]).
].
] ifFalse:[ "left node is nil"
inBoot ifTrue:[ | assoc ns rtModuStk |
@@ -26,7 +27,6 @@ walkWithScope: aScope isDefinedQ: isQ
self warnDynamicConst: name
] ifNotNil: [ | val key |
isProcClass := (val := assoc _valueNoAction) == RubyProc .
- isTypeClass := (key := assoc key) == #Type .
(inBoot and:[ val isNameSpace ]) ifTrue:[
self warnDynamicConst: key .
].
Please sign in to comment.
Something went wrong with that request. Please try again.