Files
Structive/core/tests/compile_fail/duplicate_key.cpp
T
2026-08-08 21:21:23 +08:00

10 lines
352 B
C++

#include <structive/property/property.hpp>
struct Duplicate_Key {
int left{};
int right{};
};
int main() {
auto schema = structive::object<Duplicate_Key>(structive::field<&Duplicate_Key::left>(structive::key<"value">), structive::field<&Duplicate_Key::right>(structive::key<"value">));
return static_cast<int>(schema.property_count);
}