Skip to content

error: ',' expected (got "self") #23886

Description

@Dracks

Describe the bug

Runing the tests of one of my libraries, I've got the C error:

================== C compilation error (from tcc): ==============
cc: /tmp/v_1000/tsession_7f67a12af740_01JNVWNVSBV9CADK9FQ6GVNC57/class_transformer_test.01JNVWNWHE7Y2G4EXH61NRRFYC.tmp.c:2563: error: ',' expected (got "self")
=================================================================

Reproduction Steps

Run the tests of: https://github.com/Dracks/vlang-validator-form

Expected Behavior

The tests run

Current Behavior

It throws a C error. You can see it in the pipeline output:
https://github.com/Dracks/vlang-validator-form/actions/runs/13741867512/job/38432091608?pr=1

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.9 44f8ba6

Environment details (OS name and version, etc.)

Linux

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.Generics[T]Bugs/feature requests, that are related to the V generics.Unit: CompilerBugs/feature requests, that are related to the V compiler in general.Unit: cgenBugs/feature requests, that are related to the default C generating backend.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions