David Kubecka
11/20/2024, 3:29 PM{ functionThatNeedsAccountContext() } // how to indicate that this needs Account?
val myfun: context(Account) () -> ... = { functionThatNeedsAccountContext() } // this works but I would like to avoid the intermediate val
(I need to pass the lambda as an argument in a parametrized test case that lacks typing so the context can't be inferred.)ephemient
11/20/2024, 4:55 PMcontext(Account) { functionThatNeedsAccountContext() }
work like other modifiers?David Kubecka
11/20/2024, 5:09 PMYoussef Shoaib [MOD]
11/20/2024, 5:13 PMfun <C1, R> context(lambda: context(C1) () -> R) = lambda
David Kubecka
11/20/2024, 5:17 PM