Files
Structive/core/tests/compile_fail/duplicate_attribute.cpp
T
2026-08-09 22:47:13 +08:00

11 lines
324 B
C++

#include <structive/property/property.hpp>
struct Device { int value{}; };
int main() {
auto schema = structive::object<Device>(
structive::field<&Device::value>(
structive::key<"value">,
structive::unit<"first">,
structive::unit<"second">));
static_cast<void>(schema);
}