Browse Source

Added test to check if function pointers in types are working

Ronny Otto 11 năm trước cách đây
mục cha
commit
22618ae7cc
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  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