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

Methods defined on declared type (not struct) not indexed #13

Open
Krotki opened this issue Sep 29, 2024 · 0 comments
Open

Methods defined on declared type (not struct) not indexed #13

Krotki opened this issue Sep 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Krotki
Copy link
Contributor

Krotki commented Sep 29, 2024

Describe the bug

Check Builder type in strings module.

pub type Builder = []u8

@[inline]
pub fn (mut b Builder) write_u8(data u8) {
	b << data
}

Any of the methods defined with this type as a receiver is not visible!

Expected Behavior

All methods indexed.

Current Behavior

Not indexed.

Reproduction Steps

See description.

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

V full version: V 0.4.8 a7db095.10c7a75
OS: linux, Linux Mint 21.3
Processor: 20 cpus, 64bit, little endian, 12th Gen Intel(R) Core(TM) i9-12900H

getwd: /home/jakub
vexe: /home/jakub/programy/v/v
vexe mtime: 2024-09-29 12:38:59

vroot: OK, value: /home/jakub/programy/v
VMODULES: OK, value: /home/jakub/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.34.1
Git vroot status: 0.4.8-4-g10c7a75c
.git/config present: true

CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
thirdparty/tcc status: thirdparty-linux-amd64 a0799a5b

IDE Type (IDEA Community/Ultimate, GoLand, CLion, etc.)

Idea Ultimate 2024.2.3

Plugin Version

0.0.1-beta.6

@Krotki Krotki added the bug Something isn't working label Sep 29, 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

1 participant