project('add dictionary entries with duplicate keys') dict = {} # A variable to be used as a key key = 'myKey' # Add two entries with duplicate keys should fail dict += {key : 'myValue1', key : 'myValue2'}