Skip to content

cgen: fix const name without main prefix under translated mode - #21789

Merged
spytheman merged 4 commits into
vlang:masterfrom
kbkpbot:fix-translated-const-name
Jul 4, 2024
Merged

spytheman merged 4 commits into
vlang:masterfrom
kbkpbot:fix-translated-const-name

Conversation

@kbkpbot

@kbkpbot kbkpbot commented Jul 3, 2024

Copy link
Copy Markdown
Contributor

t.v

@[translated]
module main
const ssf = [1,2,3]!
fn main() {
        assert ssf[0] == 1
}

can work with

v -translated t.v

@spytheman spytheman changed the title cgen: v fmt & fix const name without main prefix under translated mode cgen: fix const name without main prefix under translated mode Jul 4, 2024
โ€ฆompiles with `v -translated`, (translated_test.v just checks that the code compiles normally, with no options)
@spytheman
spytheman merged commit 3eac8b4 into vlang:master Jul 4, 2024
@kbkpbot
kbkpbot deleted the fix-translated-const-name branch October 3, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants