Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Update Dartdoc of Function
Browse files Browse the repository at this point in the history
The Dartdoc of the class `Function` claimed that any class with a
`call` method is a subtype of `Function`. That rule is highly obsolete,
and this PR removes it.

Change-Id: I56318f6c6d8a19007c2b6259bc7d84532cd44707
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154004
Reviewed-by: Lasse R.H. Nielsen <[email protected]>
Commit-Queue: Lasse R.H. Nielsen <[email protected]>
  • Loading branch information
eernstg authored and [email protected] committed Jul 13, 2020
1 parent eb38d2a commit fecc816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/lib/core/function.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ part of dart.core;
/**
* The base class for all function types.
*
* A function value, or an instance of a class with a "call" method, is a
* subtype of a function type, and as such, a subtype of [Function].
* The run-time type of a function object is subtype of a function type,
* and as such, a subtype of [Function].
*/
abstract class Function {
/**
Expand Down

0 comments on commit fecc816

Please sign in to comment.