mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
14 lines
224 B
Plaintext
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;
|
|
}
|