Files
c3c/test/test_suite7/methods/method_from_var.c3
2025-02-23 13:53:04 +01:00

9 lines
502 B
Plaintext

def NodeNotifyHandler = fn void(TreeView* this, TreeNode* node, String prop, void* data);
fn void TreeView.nodeNotifyHandler(TreeView* this, TreeNode* node, String prop, void* data) @private {}
struct TreeNode { int abc; NodeNotifyHandler notifyHandler; }
struct TreeView { int abc; }
fn void TreeView.addNodeInternal(TreeView* this, int nop, TreeNode* node, TreeNode* pnode = null, int pos = -1) @private
{
node.notifyHandler = &(this.nodeNotifyHandler); // #error: Taking the address of a method
}