mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
14 lines
216 B
Plaintext
14 lines
216 B
Plaintext
import std::io;
|
|
|
|
<* @require Type.kindof == SIGNED_INT *>
|
|
struct Foo <Type>
|
|
{
|
|
Type a;
|
|
}
|
|
|
|
fn int main()
|
|
{
|
|
Foo{double} d; // #error: Parameter(s) failed validation: @require "Type.kindof == SIGNED_INT"
|
|
return 0;
|
|
}
|