[Vala] [Genie] is this a bug ?



Hi,

I'm developping a program and i made a mistake in my code, i think i found a bug. If i call my gtk window class "test" and in this class i create a gtk button named "test", vala does not report an error, only gcc.

Test program:

[indent=4]

// Build with valac --pkg gtk+-2.0 yourfile.gs

uses
    Gtk

class test : Window

    init
        title = "Test Window"
        default_height = 250
        default_width = 250
        window_position = WindowPosition.CENTER
        destroy.connect(Gtk.main_quit)
        var test = new Button()
        add(test)

init
    Gtk.init (ref args)
    var testing = new test()
    testing.show_all()
    Gtk.main()

Is this a bug ?
Nicolas.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]