2
0
Эх сурвалжийг харах

Added test to check if function pointers in types are working

Ronny Otto 11 жил өмнө
parent
commit
22618ae7cc

+ 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