Created
April 21, 2016 23:03
-
-
Save AstraLuma/2e87347bf27625e4ec7d47e24c6ce4b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 471024d895e2b2679d2926d6f03528a78b90f8ba Mon Sep 17 00:00:00 2001 | |
| From: Jamie Bliss <astronouth7303@gmail.com> | |
| Date: Thu, 21 Apr 2016 19:02:57 -0400 | |
| Subject: [PATCH] Add tip to array syntax error about fixed-width arrays. | |
| --- | |
| vala/valaarraytype.vala | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala | |
| index d993e3c..6ffd6a4 100644 | |
| --- a/vala/valaarraytype.vala | |
| +++ b/vala/valaarraytype.vala | |
| @@ -241,7 +241,7 @@ public class Vala.ArrayType : ReferenceType { | |
| public override bool check (CodeContext context) { | |
| if (invalid_syntax) { | |
| - Report.error (source_reference, "syntax error, no expression allowed between array brackets"); | |
| + Report.error (source_reference, "syntax error, no expression allowed between array brackets (tip: fixed-size arrays must have the brackets after the name)"); | |
| error = true; | |
| return false; | |
| } | |
| -- | |
| 2.8.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment