returnllvm.Value{},c.makeError(pos,"only strings, bools, ints or structs of bools/ints are supported as map keys, but got: "+keyType.String())
returnllvm.Value{},c.makeError(pos,"only strings, bools, ints, pointers or structs of bools/ints are supported as map keys, but got: "+keyType.String())
}
// Load the resulting value from the hashmap. The value is set to the zero
@ -69,7 +69,7 @@ func (c *Compiler) emitMapUpdate(keyType types.Type, m, key, value llvm.Value, p
c.createRuntimeCall("hashmapBinarySet",params,"")
c.emitLifetimeEnd(keyPtr,keySize)
}else{
c.addError(pos,"only strings, bools, ints or structs of bools/ints are supported as map keys, but got: "+keyType.String())
c.addError(pos,"only strings, bools, ints, pointers or structs of bools/ints are supported as map keys, but got: "+keyType.String())