Commit 05c56ab6 authored by Jürg Billeter's avatar Jürg Billeter

dova: Classes derive from Object by default

parent 84b6b23b
/* valasymbolresolver.vala
*
* Copyright (C) 2006-2009 Jürg Billeter
* Copyright (C) 2006-2010 Jürg Billeter
* Copyright (C) 2006-2008 Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
......@@ -74,6 +74,17 @@ public class Vala.SymbolResolver : CodeVisitor {
}
}
if (context.profile == Profile.DOVA) {
// classes derive from Object by default
if (cl.base_class == null) {
var object_class = (Class) root_symbol.scope.lookup ("Dova").scope.lookup ("Object");
if (cl != object_class) {
cl.add_base_type (new ObjectType (object_class));
cl.base_class = object_class;
}
}
}
current_scope = current_scope.parent_scope;
}
......
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