Fix spelling errors (#10379)
This commit is contained in:
parent
bfeade9791
commit
095eaacf21
4 changed files with 23 additions and 23 deletions
|
|
@ -230,7 +230,7 @@ proc semConv(c: PContext, n: PNode): PNode =
|
|||
# special case to make MyObject(x = 3) produce a nicer error message:
|
||||
if n[1].kind == nkExprEqExpr and
|
||||
targetType.skipTypes(abstractPtrs).kind == tyObject:
|
||||
localError(c.config, n.info, "object contruction uses ':', not '='")
|
||||
localError(c.config, n.info, "object construction uses ':', not '='")
|
||||
var op = semExprWithType(c, n.sons[1])
|
||||
if targetType.isMetaType:
|
||||
let final = inferWithMetatype(c, targetType, op, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue