@Test
    void testFieldAndFunctionWithSameName() throws Exception {
        String schema =
                """
                schema doc {

                    document doc {

                        field numerical_1 type double {
                            indexing: attribute
                        }
                
                    }
                
                    rank-profile my_profile inherits default {

                        function numerical_1() {
                            expression: attribute(numerical_1)
                        }

                        first-phase {
                            expression: 1.0
                        }
                    }

                }""";

        ApplicationBuilder builder = new ApplicationBuilder(new DeployLoggerStub());
        builder.addSchema(schema);
        var application = builder.build(true);
        new DerivedConfiguration(application.schemas().get("doc"), application.rankProfileRegistry());
    }
Should not cause a cycle detection false positive by mistaking the attribute argument for a function call.
config-model/src/test/java/com/yahoo/schema/SchemaTestCase.java