mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-27 05:15:09 +00:00
C++: make async tests green on Windows
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user