diff options
author | Miran <narimiran@users.noreply.github.com> | 2018-10-18 12:29:32 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-18 12:29:32 +0200 |
commit | 675c629feea96da67267c2ca3c2ecdf528f48537 (patch) | |
tree | ee4291353bfb1918c63e363a64046b8116b06627 /compiler/semstmts.nim | |
parent | 7d8e281239de4d8d4ba2a32671812726a8c20263 (diff) | |
download | Nim-675c629feea96da67267c2ca3c2ecdf528f48537.tar.gz |
replace deprecated `safeAdd` with `add` (#9416)
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index d2b866366..0ace01bc5 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1517,7 +1517,7 @@ proc semMethodPrototype(c: PContext; s: PSym; n: PNode) = tyAlias, tySink}) if x.kind == tyObject and t.len-1 == n.sons[genericParamsPos].len: foundObj = true - x.methods.safeAdd((col,s)) + x.methods.add((col,s)) if not foundObj: message(c.config, n.info, warnDeprecated, "generic method not attachable to object type") else: |