New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecating a call() method #9470
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Comments
Added Area-Analyzer, Triaged labels. |
Added this to the M5 milestone. |
Added Analyzer-Hint label. |
Removed Type-Defect label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
DartBot
added
Type-Enhancement
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
analyzer-warning
Issues with the analyzer's Warning codes
labels
Aug 4, 2014
kevmoo
added
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
and removed
triaged
labels
Feb 29, 2016
Live reproduction: https://dartpad.dartlang.org/d9da1de58d5a83f19110f83ca6085b48 |
srawlins
added a commit
that referenced
this issue
Apr 27, 2016
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 .
Done in 2cfa9c4. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @bp74
What steps will reproduce the problem?
import 'package:meta/meta.dart';
class foo {
@deprecated
call(String name) {
print("hello $name");
}
sayHello(String name) {
print("hello $name");
}
}
void main() {
var f = new foo();
f("Thomas");
f.sayHello("Thomas");
}
What is the expected output? What do you see instead?
The Dart Editor strikes through the "call" method in the "foo" class, but there is no warning from the Dart Analyzer in the "main" method. The Dart Editor should signal that f("Thomas") is deprecated.
What version of the product are you using? On what operating system?
Dart Editor version 0.1.2_r20560
Dart SDK version 0.1.2.0_r20560
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: