[vala] Fix error message when trying to invoke object



commit 46a9ac1f8987c9cc23839968f8e59d2bd368b68f
Author: Jürg Billeter <j bitron ch>
Date:   Tue Jul 28 18:08:19 2009 +0200

    Fix error message when trying to invoke object
    
    Based on patch by Andreas Brauchli, fixes bug 574910.

 vala/valamethodcall.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index ff9443b..a4763b8 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -139,7 +139,7 @@ public class Vala.MethodCall : Expression {
 			var cm = analyzer.find_current_method () as CreationMethod;
 			if (cm == null) {
 				error = true;
-				Report.error (source_reference, "use `new' operator to create new objects");
+				Report.error (source_reference, "invocation not supported in this context");
 				return false;
 			} else if (cm.chain_up) {
 				error = true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]