We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7a1cd commit 804065aCopy full SHA for 804065a
1 file changed
doc/docs.md
@@ -448,17 +448,6 @@ fn main() {
448
Unlike most languages, variable shadowing is not allowed. Declaring a variable with a name
449
that is already used in a parent scope will cause a compilation error.
450
451
-You can shadow imported modules though, as it is very useful in some situations:
452
-```v ignore
453
-import ui
454
-import gg
455
-
456
-fn draw(ctx &gg.Context) {
457
- gg := ctx.parent.get_ui().gg
458
- gg.draw_rect(10, 10, 100, 50)
459
-}
460
-```
461
462
## V Types
463
464
### Primitive types
0 commit comments