Merge branch 'devel' of github.com:nim-lang/Nim into devel
This commit is contained in:
commit
4b3f164368
16 changed files with 70 additions and 68 deletions
|
|
@ -104,6 +104,7 @@ Files: "lib/pure/concurrency/*.cfg"
|
|||
Files: "lib/impure/*.nim"
|
||||
Files: "lib/impure/nre/private/*.nim"
|
||||
Files: "lib/wrappers/*.nim"
|
||||
Files: "lib/arch/*.nim"
|
||||
|
||||
Files: "lib/wrappers/readline/*.nim"
|
||||
Files: "lib/wrappers/linenoise/*.nim"
|
||||
|
|
|
|||
|
|
@ -178,10 +178,6 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode,
|
|||
result.typ = n[1].typ
|
||||
of mDotDot:
|
||||
result = n
|
||||
# disallow negative indexing for now:
|
||||
if not c.p.bracketExpr.isNil:
|
||||
if isNegative(n.sons[1]) or (n.len > 2 and isNegative(n.sons[2])):
|
||||
localError(n.info, "use '^' instead of '-'; negative indexing is obsolete")
|
||||
of mRoof:
|
||||
let bracketExpr = if n.len == 3: n.sons[2] else: c.p.bracketExpr
|
||||
if bracketExpr.isNil:
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ proc searchInstTypes*(key: PType): PType =
|
|||
if inst.id == key.id: return inst
|
||||
if inst.sons.len < key.sons.len:
|
||||
# XXX: This happens for prematurely cached
|
||||
# types such as TChannel[empty]. Why?
|
||||
# types such as Channel[empty]. Why?
|
||||
# See the notes for PActor in handleGenericInvocation
|
||||
return
|
||||
block matchType:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue