diff --git a/src/OpalCompiler-Core/IRBytecodeGenerator.class.st b/src/OpalCompiler-Core/IRBytecodeGenerator.class.st index 6f9af0a6409..9cf1a1b9029 100644 --- a/src/OpalCompiler-Core/IRBytecodeGenerator.class.st +++ b/src/OpalCompiler-Core/IRBytecodeGenerator.class.st @@ -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' ] ]