fixes #266
This commit is contained in:
parent
38ab30d153
commit
c5826ec1fb
2 changed files with 1 additions and 5 deletions
|
|
@ -869,8 +869,6 @@ proc semMethod(c: PContext, n: PNode): PNode =
|
||||||
proc semConverterDef(c: PContext, n: PNode): PNode =
|
proc semConverterDef(c: PContext, n: PNode): PNode =
|
||||||
if not isTopLevel(c): LocalError(n.info, errXOnlyAtModuleScope, "converter")
|
if not isTopLevel(c): LocalError(n.info, errXOnlyAtModuleScope, "converter")
|
||||||
checkSonsLen(n, bodyPos + 1)
|
checkSonsLen(n, bodyPos + 1)
|
||||||
#if n.sons[genericParamsPos].kind != nkEmpty:
|
|
||||||
# LocalError(n.info, errNoGenericParamsAllowedForX, "converter")
|
|
||||||
result = semProcAux(c, n, skConverter, converterPragmas)
|
result = semProcAux(c, n, skConverter, converterPragmas)
|
||||||
var s = result.sons[namePos].sym
|
var s = result.sons[namePos].sym
|
||||||
var t = s.typ
|
var t = s.typ
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,7 @@
|
||||||
## module will therefore not work with any Linux kernel prior to that, unless
|
## module will therefore not work with any Linux kernel prior to that, unless
|
||||||
## it has been patched to support inotify.
|
## it has been patched to support inotify.
|
||||||
|
|
||||||
when defined(windows):
|
when defined(linux) or defined(nimdoc):
|
||||||
{.error: "Windows is not yet supported by this module.".}
|
|
||||||
elif defined(linux):
|
|
||||||
from posix import read
|
from posix import read
|
||||||
else:
|
else:
|
||||||
{.error: "Your platform is not supported.".}
|
{.error: "Your platform is not supported.".}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue