Quellcode durchsuchen

Added test to check if function pointers in types are working

Ronny Otto vor 11 Jahren
Ursprung
Commit
22618ae7cc
1 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  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