diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-09-09 07:32:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 07:32:03 +0200 |
commit | 10988d48407e96b707b28c5900fcb0e59354e00a (patch) | |
tree | b214c60feeec87fcec7393a5e81159e719fd2085 /compiler/semstmts.nim | |
parent | c49b88163c12d18506ef43e4d26abd5d76f68359 (diff) | |
download | Nim-10988d48407e96b707b28c5900fcb0e59354e00a.tar.gz |
borrow checking (#15282)
* refactoring: move procs to typeallowed.nim * frontend preparations for first class openArray support * prepare the code generator for first class openArray * code generation for first class openArray; WIP * code generation for open arrays, progress * added isViewType proc * preparations for borrow checking * added borrow checking to the front end
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 2c3ff2bea..14f08b4b3 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -534,7 +534,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode = if c.matchedConcept != nil: typFlags.incl taConcept - typeAllowedCheck(c.config, a.info, typ, symkind, typFlags) + typeAllowedCheck(c, a.info, typ, symkind, typFlags) when false: liftTypeBoundOps(c, typ, a.info) instAllTypeBoundOp(c, a.info) @@ -667,7 +667,7 @@ proc semConst(c: PContext, n: PNode): PNode = if def.kind != nkNilLit: if c.matchedConcept != nil: typFlags.incl taConcept - typeAllowedCheck(c.config, a.info, typ, skConst, typFlags) + typeAllowedCheck(c, a.info, typ, skConst, typFlags) var b: PNode if a.kind == nkVarTuple: |