Files
c3c/test/test_suite/generic/generic_contract_aggregation.c3
2025-12-30 21:31:45 +01:00

14 lines
224 B
Plaintext

import std::io;
<* @require Type.kindof == SIGNED_INT *>
struct Foo @generic(Type)
{
Type a;
}
fn int main()
{
Foo{double} d; // #error: Parameter(s) failed validation: @require "Type.kindof == SIGNED_INT"
return 0;
}