From 79d8275eee61dd163784efcb2c62911dbd2ba850 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 18 Aug 2012 17:32:32 +0200 Subject: [PATCH] adding data/proto.qc --- data/proto.qc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 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"); +} -- 2.39.2