Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hrissan authored and Brat-vseznamus committed Jul 12, 2024
1 parent 64baf1b commit be8ad27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tlcodegen/tlgen_kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func (gen *Gen2) generateTypeStruct(lrc LocalResolveContext, myWrapper *TypeRWWr
newField.fieldMask != nil && !newField.fieldMask.isArith && newField.fieldMask.isField &&
!LegacyAllowBoolFieldsmask(myWrapper.origTL[0].Construct.Name.String(), field.FieldName) {
// We compare type by name to make warning more narrow at first.
e1 := field.FieldType.PR.BeautifulError(fmt.Errorf("Bool type under fields mask has 3 states, you probably want to use 'true' instead of 'Bool'"))
e1 := field.FieldType.PR.BeautifulError(fmt.Errorf("using Bool type under fields mask produces 3rd state, you probably want to use 'true' instead of 'Bool'"))
if gen.options.WarningsAreErrors {
return e1
}
Expand Down

0 comments on commit be8ad27

Please sign in to comment.