Skip to content

Commit c6295f4

Browse files
committed
Tweak comment
1 parent 18d83d3 commit c6295f4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

internal/checker/checker.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21464,11 +21464,10 @@ func (c *Checker) instantiateTypeWorker(t *Type, m *TypeMapper, alias *TypeAlias
2146421464
}
2146521465

2146621466
// Handles instantiation of the following object types:
21467-
// AnonymousType (ObjectFlagsAnonymous|)
21467+
// AnonymousType (ObjectFlagsAnonymous|ObjectFlagsSingleSignatureType)
2146821468
// TypeReference with node != nil (ObjectFlagsReference)
2146921469
// InstantiationExpressionType (ObjectFlagsInstantiationExpressionType)
2147021470
// MappedType (ObjectFlagsMapped)
21471-
// Note: ObjectFlagsSingleSignatureType types are handled as anonymous types
2147221471
func (c *Checker) getObjectTypeInstantiation(t *Type, m *TypeMapper, alias *TypeAlias) *Type {
2147321472
var declaration *ast.Node
2147421473
var target *Type

internal/checker/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,6 @@ func (t *StructuredType) Properties() []*ast.Symbol {
837837
// ObjectFlagsAnonymous|ObjectFlagsInstantiationExpression: Originating instantiation expression type
838838
// ObjectFlagsAnonymous|ObjectFlagsInstantiated|ObjectFlagsInstantiationExpression: Instantiated instantiation expression type
839839

840-
// Note: ObjectFlagsSingleSignatureType types are AnonymousType with the flag set (no separate struct)
841-
842840
// ReverseMappedType:
843841
// ObjectFlagsAnonymous|ObjectFlagsReverseMapped: Reverse mapped type
844842

0 commit comments

Comments
 (0)