You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Manual/Language/InductiveTypes/Structures.lean
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -285,10 +285,10 @@ structure AugmentedIntList where
285
285
augmentation : String := ""
286
286
```
287
287
288
-
When testing whether the list is empty, the function {name AugmentedIntList.isEmpty}`isEmpty` is also testing whether the {name AugmentedIntList.augmentation}`augmentation` field is empty, because the omitted field's default value is also used in pattern contexts:
288
+
When testing whether the list is empty, the function {name AugmentedIntList.isEmpty}`isEmpty` must explicitly matchthe {name AugmentedIntList.augmentation}`augmentation` field, even though it has a default value:
0 commit comments