Ticket #234 (closed defect: duplicate)
Enum member not available that definitely exists. (Gtk/Gdk)
Reported by: | nevdelap | Owned by: | nevdelap |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
Workaround is to use sharp string.
@args -pkg:gtk-sharp-2.0 use Gdk class P def main is shared args = Gtk.KeyPressEventArgs() if args.event.key == Gdk.Key.return # error pass if args.event.key == Gdk.Key.Return # error pass if sharp'args.Event.Key == Gdk.Key.Return' # ok, it's def there. (I'm using this in app.) pass
test.cobra(9): error: Cannot find a definition for "return" in "Key" whose type is "Key". There are members with similar names including ".E", ".N", ".R", ".T" and ".U".
test.cobra(11): error: Cannot find a definition for "Return" in "Key" whose type is "Key". There are members with similar names including ".E", ".N", ".R", ".T" and ".U".
Change History
Note: See
TracTickets for help on using
tickets.