# Test that the bool() operator on nodes works as expected from lexer_example import foo_lexer @with_lexer(foo_lexer) grammar foo_grammar { @main_rule main_rule <- list+(Example("example")) } @abstract class FooNode implements Node[FooNode] { } class Example: FooNode { }