Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@deprecated should work on 'called' objects
BUG=#9470 Example output: $ cat -n a.dart 1 class Foo { 2 Foo foo; 3 4 @deprecated 5 call(String name) { 6 print("hello $name"); 7 } 8 } 9 10 void main() { 11 Foo f = new Foo(); 12 f("Thomas"); 13 f.foo = new Foo(); 14 f.foo("Timmy"); 15 } $ xcodebuild/ReleaseX64/dart-sdk/bin/dartanalyzer a.dart Analyzing [a.dart]... [hint] 'Foo.call' is deprecated (/Users/srawlins/code/dart-repo3/sdk/a.dart, line 12, col 3) [hint] 'Foo.call' is deprecated (/Users/srawlins/code/dart-repo3/sdk/a.dart, line 14, col 3) 2 hints found. R=brianwilkerson@google.com, scheglov@google.com Review URL: https://codereview.chromium.org/1922563003 .
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters