From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 15:32:32 +0000 (+0200) Subject: adding data/proto.qc X-Git-Tag: 0.1-rc1~196 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79d8275eee61dd163784efcb2c62911dbd2ba850;p=xonotic%2Fgmqcc.git adding data/proto.qc --- diff --git a/data/proto.qc b/data/proto.qc new file mode 100644 index 0000000..a57112c --- /dev/null +++ b/data/proto.qc @@ -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"); +}