diff options
author | Araq <rumpf_a@web.de> | 2012-12-05 22:58:52 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-12-05 22:58:52 +0100 |
commit | c5826ec1fb747207573b1289b340d6243012f67f (patch) | |
tree | adee05abb345d1fe4573bdac0a78160dc960c672 | |
parent | 38ab30d153f7ae3b1b2b74329092ffb7ca781ead (diff) | |
download | Nim-c5826ec1fb747207573b1289b340d6243012f67f.tar.gz |
fixes #266
-rwxr-xr-x | compiler/semstmts.nim | 2 | ||||
-rw-r--r-- | lib/pure/fsmonitor.nim | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index c5b226004..8b55058bb 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -869,8 +869,6 @@ proc semMethod(c: PContext, n: PNode): PNode = proc semConverterDef(c: PContext, n: PNode): PNode = if not isTopLevel(c): LocalError(n.info, errXOnlyAtModuleScope, "converter") checkSonsLen(n, bodyPos + 1) - #if n.sons[genericParamsPos].kind != nkEmpty: - # LocalError(n.info, errNoGenericParamsAllowedForX, "converter") result = semProcAux(c, n, skConverter, converterPragmas) var s = result.sons[namePos].sym var t = s.typ diff --git a/lib/pure/fsmonitor.nim b/lib/pure/fsmonitor.nim index 92a80425a..a554cf963 100644 --- a/lib/pure/fsmonitor.nim +++ b/lib/pure/fsmonitor.nim @@ -17,9 +17,7 @@ ## module will therefore not work with any Linux kernel prior to that, unless ## it has been patched to support inotify. -when defined(windows): - {.error: "Windows is not yet supported by this module.".} -elif defined(linux): +when defined(linux) or defined(nimdoc): from posix import read else: {.error: "Your platform is not supported.".} |