C++: make async tests green on Windows
This commit is contained in:
parent
da80992577
commit
4a6d699bc5
3 changed files with 7 additions and 6 deletions
|
|
@ -2231,14 +2231,14 @@ proc matchesAux(c: PContext, n, nOrig: PNode,
|
|||
else:
|
||||
m.state = csNoMatch
|
||||
return
|
||||
|
||||
|
||||
if formal.typ.kind == tyVar:
|
||||
let arg_converter = if arg.kind == nkHiddenDeref: arg[0] else: arg
|
||||
if arg_converter.kind == nkHiddenCallConv:
|
||||
if arg_converter.typ.kind != tyVar:
|
||||
let argConverter = if arg.kind == nkHiddenDeref: arg[0] else: arg
|
||||
if argConverter.kind == nkHiddenCallConv:
|
||||
if argConverter.typ.kind != tyVar:
|
||||
m.state = csNoMatch
|
||||
m.mutabilityProblem = uint8(f-1)
|
||||
return
|
||||
return
|
||||
elif not n.isLValue:
|
||||
m.state = csNoMatch
|
||||
m.mutabilityProblem = uint8(f-1)
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ type
|
|||
fd_count*: cint # unsigned
|
||||
fd_array*: array[0..FD_SETSIZE-1, SocketHandle]
|
||||
|
||||
Timeval* = object
|
||||
Timeval* {.importc: "timeval", header: "<time.h>".} = object
|
||||
tv_sec*, tv_usec*: int32
|
||||
|
||||
AddrInfo* = object
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ Multiple idents in except
|
|||
Multiple except branches
|
||||
Multiple except branches 2
|
||||
'''
|
||||
targets: "c"
|
||||
"""
|
||||
import asyncdispatch, strutils
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue