You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"could not find type Testt in namespace __config__"
442
442
" (reported in Implementation(test) ({dir}/main.cf:5))")
443
+
444
+
445
+
deftest_747_index_collisions(snippetcompiler):
446
+
snippetcompiler.setup_for_error(
447
+
"""
448
+
entity Test:
449
+
string name
450
+
string value
451
+
end
452
+
453
+
implementation none for Test:
454
+
end
455
+
456
+
implement Test using none
457
+
458
+
index Test(name)
459
+
Test(name="A", value="a")
460
+
Test(name="A", value="b")
461
+
462
+
""",
463
+
"""Could not set attribute `value` on instance `__config__::Test (instantiated at {dir}/main.cf:13,{dir}/main.cf:14)` (reported in Construct(Test) ({dir}/main.cf:14))
464
+
caused by:
465
+
value set twice:
466
+
\told value: a
467
+
\t\tset at {dir}/main.cf:13
468
+
\tnew value: b
469
+
\t\tset at {dir}/main.cf:14
470
+
(reported in Construct(Test) ({dir}/main.cf:14))"""# nopep8
"""Could not set attribute `value` on instance `__config__::Test (instantiated at {dir}/main.cf:15,{dir}/main.cf:15)` (reported in Construct(Test) ({dir}/main.cf:15))
495
+
caused by:
496
+
value set twice:
497
+
\told value: a
498
+
\t\tset at {dir}/main.cf:15:34
499
+
\tnew value: b
500
+
\t\tset at {dir}/main.cf:15:34
501
+
(reported in Construct(Test) ({dir}/main.cf:15))"""# nopep8
0 commit comments