adding data/proto.qc

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 17:32:32 +02:00
parent 24a21d0816
commit 79d8275eee

12
data/proto.qc Normal file
View file

@ -0,0 +1,12 @@
void(string) print = #1;
void() correct;
void(string) incorrect;
void() correct = {
print("Hello\n");
}
void() incorrect = {
printf("The compiler should error about this function having a wrong type\n");
}