Browse Source

Added test to check if function pointers in types are working

Ronny Otto 11 years ago
parent
commit
22618ae7cc
1 changed files with 16 additions and 0 deletions
  1. 16 0
      tests/framework/language/pointer_01.bmx

+ 16 - 0
tests/framework/language/pointer_01.bmx

@@ -0,0 +1,16 @@
+Rem
+	This test checks:
+	- if function pointers are possible
+End Rem
+SuperStrict
+
+Import BRL.StandardIO
+
+
+Type MyType
+	Field _func:int()
+
+	Method Run:int()
+		if _func then _func()
+	End Method
+End Type