Skip to content

Commit

Permalink
fix isKindOf: Association in IRBytecodeGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
dionisiydk committed Jun 9, 2020
1 parent 93565ad commit 94bfaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpalCompiler-Core/IRBytecodeGenerator.class.st
Expand Up @@ -95,7 +95,7 @@ IRBytecodeGenerator >> addLastLiteral: object [
((lastLiteral literalEqual: object)
or: [
"case of metaclass, they have no unique association"
(lastLiteral isKindOf: Association) and: [ lastLiteral key isNil ] ])
lastLiteral isVariableBinding and: [ lastLiteral key isNil ] ])
ifFalse: [ self error: 'there can only be one last literal' ]
]

Expand Down

0 comments on commit 94bfaa2

Please sign in to comment.