Commit 65bb2b69 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

report error for invalid assignments, fixes bug 482997

2007-10-05  Juerg Billeter  <j@bitron.ch>

	* vala/valasemanticanalyzer.vala: report error for invalid assignments,
	  fixes bug 482997

svn path=/trunk/; revision=639
parent 6d5314cb
2007-10-05 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error for invalid assignments,
fixes bug 482997
2007-10-02 Jürg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vala: small additions
......
......@@ -2610,6 +2610,11 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
if (a.left is MemberAccess) {
var ma = (MemberAccess) a.left;
if (!(ma.symbol_reference is Signal) && ma.static_type == null) {
a.error = true;
Report.error (a.source_reference, "unsupported lvalue in assignment");
return;
}
if (ma.prototype_access) {
a.error = true;
Report.error (a.source_reference, "Access to instance member `%s' denied".printf (ma.symbol_reference.get_full_name ()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment