Static method on generic type is not supported #21056
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Unit: Parser
Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
Describe the bug
This bug/missing feautures is already discussed on discord before this submitted, see missing feature of support static method on generic type thanks @spytheman
Code: https://vosca.dev/p/db03a26fcd
Reproduction Steps
Use above snippet to reproduce the results
Expected Behavior
Define static method on generic type should be supported.
Current Behavior
Output:
Possible Solution
No response
Additional Information/Context
when its changed to instance based method,
its produces expected behavour
V full version: V 0.4.4 c3cf9ee.a36c693
OS: linux, Ubuntu 22.04.2 LTS
Processor: 2 cpus, 64bit, little endian, Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
getwd: /home/pmakhnev/playground
vexe: /home/pmakhnev/v/v
vexe mtime: 2024-03-18 12:00:08
vroot: OK, value: /home/pmakhnev/v
VMODULES: OK, value: /root/.vmodules
VTMP: OK, value: /tmp/v_0
Git version: git version 2.34.1
Git vroot status: weekly.2024.11-45-ga36c693f
.git/config present: true
CC version: cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
The text was updated successfully, but these errors were encountered: