Wiki

Ticket #234 (closed defect: duplicate)

Opened 7 years ago

Last modified 7 years ago

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

Changed 7 years ago by hopscc

  • status changed from new to assigned
  • owner set to nevdelap

Did the fix for ticket:250 correct this as well (latest source in tree) ?

Changed 7 years ago by Chuck

  • status changed from assigned to closed
  • resolution set to duplicate

Yes.

Note: See TracTickets for help on using tickets.