2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using weak type
modifier in cast expressions, fixes bug 527990
svn path=/trunk/; revision=1224
2008-04-14 Jürg Billeter <j@bitron.ch>
+ * vala/valaparser.vala: report warning when using weak type
+ modifier in cast expressions, fixes bug 527990
+
+2008-04-14 Jürg Billeter <j@bitron.ch>
+
* vala/valasemanticanalyzer.vala: fix interface base access,
fixes bug 527985
next ();
switch (current ()) {
case TokenType.VOID:
+ case TokenType.WEAK:
case TokenType.IDENTIFIER:
var type = parse_type ();
if (accept (TokenType.CLOSE_PARENS)) {
case TokenType.SIZEOF:
case TokenType.TYPEOF:
case TokenType.IDENTIFIER:
+ var ut = type as UnresolvedType;
+ if (ut != null && ut.is_weak) {
+ Report.warning (get_src (begin), "obsolete syntax, weak type modifier unused in cast expressions");
+ }
var inner = parse_unary_expression ();
return context.create_cast_expression (inner, type, get_src (begin), false);
}