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

Unable to use bool field as if condition #46

Open
elias098 opened this issue Jul 31, 2024 · 0 comments
Open

Unable to use bool field as if condition #46

elias098 opened this issue Jul 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@elias098
Copy link

currently the below gives the error

proc-macro panicked: not yet implemented: Expr::Field { attrs: [], base: Expr::Path { attrs: [], qself: None, path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "a", span: SpanData { range: 1694..1695, anchor: SpanAnchor(FileId(0), 110), ctx: SyntaxContextId(0) } }, arguments: PathArguments::None }] } }, dot_token: Dot, member: Member::Named(Ident { ident: "b", span: SpanData { range: 1696..1697, anchor: SpanAnchor(FileId(0), 110), ctx: SyntaxContextId(0) } }) } cond not supported
#[derive(Debug, CubeType, Clone)]
struct A {
    b: bool,
}

#[cube]
fn test_field(a: A) {
    if a.b {}
}
@louisfd louisfd added the bug Something isn't working label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants