project('add dictionary entry using non-string key') dict = {} # An integer variable to be used as a key key = 1 # Add new entry using integer variable as key should fail dict += {key : 'myValue'}