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 a8aeae2 commit a993fb0Copy full SHA for a993fb0
2 files changed
vlib/sync/chan_mod_sync_test.v
@@ -0,0 +1,10 @@
1
+module sync
2
+
3
+struct ChanStruct {
4
+ workers []chan bool
5
+}
6
7
+fn test_chan_mod_sync() {
8
+ _ := chan bool{cap: 1}
9
+ assert true
10
vlib/v/parser/module.v
@@ -43,6 +43,9 @@ fn (mut p Parser) register_used_import_for_symbol_name(sym_name string) {
43
}
44
45
fn (mut p Parser) register_auto_import(alias string) {
46
+ if p.mod == alias {
47
+ return
48
+ }
49
if alias !in p.imports {
50
p.imports[alias] = alias
51
p.table.imports << alias
0 commit comments