preparations for making 'closure' the default calling convention for proc types
This commit is contained in:
parent
56b4e3ad91
commit
8d99753d63
36 changed files with 117 additions and 102 deletions
|
|
@ -640,14 +640,6 @@ proc dontInlineConstant(orig, cnst: PNode): bool {.inline.} =
|
|||
result = orig.kind == nkSym and cnst.kind in {nkCurly, nkPar, nkBracket} and
|
||||
cnst.len != 0
|
||||
|
||||
proc warnNarrowingConversion(n: PNode) =
|
||||
if n.kind == nkHiddenStdConv:
|
||||
var dest = skipTypes(n.typ, abstractVarRange)
|
||||
var source = skipTypes(n.sons[1].typ, abstractVarRange)
|
||||
if source.kind == tyInt and
|
||||
source.size > dest.size and n.sons[1].kind != nkIntLit:
|
||||
Message(n.info, warnImplicitNarrowing, renderTree(n.sons[1]))
|
||||
|
||||
proc transform(c: PTransf, n: PNode): PTransNode =
|
||||
case n.kind
|
||||
of nkSym:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue