1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: make duplicated functions an error (#8792)

This commit is contained in:
zakuro
2021-02-18 04:50:10 +09:00
committed by GitHub
parent 33d8074846
commit 21bf8fe14e
11 changed files with 33 additions and 163 deletions

View File

@@ -3,9 +3,6 @@
// that can be found in the LICENSE file.
module sync
[trusted]
fn C.atomic_fetch_add_u32(voidptr, u32) u32
// WaitGroup
// Do not copy an instance of WaitGroup, use a ref instead.
//
@@ -15,7 +12,7 @@ fn C.atomic_fetch_add_u32(voidptr, u32) u32
// `wg.wait()` to wait for all jobs to have finished
//
// in each parallel job:
// `wg.done()` when finished
// `wg.done()` when finished
//
// [init_with=new_waitgroup] // TODO: implement support for init_with struct attribute, and disallow WaitGroup{} from outside the sync.new_waitgroup() function.
[heap]