[Vala] Interface problem
- From: "Heikki Paajanen" <hepaajan iki fi>
- To: vala paldo org
- Subject: [Vala] Interface problem
- Date: Mon, 6 Nov 2006 16:17:34 +0200 (EET)
Hi,
I ran into problem when using an interface. Following example code
triggers the problem:
"""
using GLib;
public interface TestInterface {
public abstract int test_method();
}
public class TestClass {
private TestInterface ti {get; set; }
public construct(TestInterface _ti) {
ti = _ti;
}
}
"""
results of compilation with current svn version of vala:
"""
../vala/compiler/valac interfacetest.vala
** (lt-valac:10858): CRITICAL **: vala_ccode_identifier_new: assertion
`_name != NULL' failed
** (lt-valac:10858): CRITICAL **: vala_ccode_function_call_add_argument:
assertion `VALA_IS_CCODE_EXPRESSION (expr)' failed
Compilation succeeded - 0 warning(s)
cc `pkg-config --cflags --libs gobject-2.0` -o interfacetest interfacetest.c
interfacetest.c: In function test_class_new:
interfacetest.c:23: error: too few arguments to function g_value_init
make: *** [interfacetest] Virhe 1
"""
Regards,
Hessu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]