mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: replace generic <>
with []
- part 2 (#16536)
This commit is contained in:
@ -58,7 +58,7 @@ pub:
|
||||
cap u32 // queue length in #objects
|
||||
}
|
||||
|
||||
pub fn new_channel<T>(n u32) &Channel {
|
||||
pub fn new_channel[T](n u32) &Channel {
|
||||
st := sizeof(T)
|
||||
if isreftype(T) {
|
||||
return new_channel_st(n, st)
|
||||
|
Reference in New Issue
Block a user