Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for recursive structs projectors #195

Closed
R1kM opened this issue May 23, 2024 · 1 comment
Closed

Add test for recursive structs projectors #195

R1kM opened this issue May 23, 2024 · 1 comment
Assignees

Comments

@R1kM
Copy link
Member

R1kM commented May 23, 2024

We should add the following test, coming from #194

struct AVLNode<T> {
    value: T,
    left: AVLTree<T>,
    right: AVLTree<T>,
}

type AVLTree<T> = Option<Box<AVLNode<T>>>;


fn get_val<T>(x: AVLNode<T>) -> T  { x.value }

fn get_left<T>(x: AVLNode<T>) -> AVLTree<T> { x.left }
@Nadrieril Nadrieril self-assigned this May 23, 2024
@Nadrieril
Copy link
Member

Fixed in #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants