Commit 0b996ba3 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

check for inherited properties in construct formal parameters

2007-03-04  Jürg Billeter  <j@bitron.ch>

	* vala/valasemanticanalyzer.vala: check for inherited properties in
	  construct formal parameters

svn path=/trunk/; revision=220
parent 2ef7213e
2007-03-04 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: check for inherited properties in
construct formal parameters
2007-03-04 Jürg Billeter <j@bitron.ch> 2007-03-04 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: don't allow interface implementations * vala/valasemanticanalyzer.vala: don't allow interface implementations
......
...@@ -316,9 +316,9 @@ public class Vala.SemanticAnalyzer : CodeVisitor { ...@@ -316,9 +316,9 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
var left = new MemberAccess.simple (p.name); var left = new MemberAccess.simple (p.name);
var right = new MemberAccess.simple (p.name); var right = new MemberAccess.simple (p.name);
/* try to lookup the requeted property */ /* try to lookup the requested property */
var prop_sym = current_class.symbol.lookup (p.name); var prop_sym = symbol_lookup_inherited (current_class.symbol, p.name);
if (prop_sym == null || !(prop_sym.node is Property)) { if (!(prop_sym.node is Property)) {
p.error = true; p.error = true;
Report.error (p.source_reference, "class `%s' does not contain a property named `%s'".printf (current_class.symbol.get_full_name (), p.name)); Report.error (p.source_reference, "class `%s' does not contain a property named `%s'".printf (current_class.symbol.get_full_name (), p.name));
return; return;
......
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