chore: typo fix in error message of overlapping structure fields
This commit is contained in:
parent
999b61007c
commit
8da48f2381
2 changed files with 2 additions and 2 deletions
|
|
@ -435,7 +435,7 @@ private def mkFieldMap (fields : Fields) : TermElabM FieldMap :=
|
|||
match fieldMap.find? fieldName with
|
||||
| some (prevField::restFields) =>
|
||||
if field.isSimple || prevField.isSimple then
|
||||
throwErrorAt field.ref "field '{fieldName}' has already beed specified"
|
||||
throwErrorAt field.ref "field '{fieldName}' has already been specified"
|
||||
else
|
||||
return fieldMap.insert fieldName (field::prevField::restFields)
|
||||
| _ => return fieldMap.insert fieldName [field]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
structInst1.lean:12:11-12:19: error: field 'toA' has already beed specified
|
||||
structInst1.lean:12:11-12:19: error: field 'toA' has already been specified
|
||||
f5 : C → A → C
|
||||
f6 : C → A → A
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue