summaryrefslogtreecommitdiffstats
path: root/test cases/failing/93 add dict non string key/meson.build
blob: c81a3f76479fa87b4a8e0b576f2e1923ec4e25f4 (plain)
1
2
3
4
5
6
7
8
9
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'}