dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.19k stars 1.57k forks source link

List.fixedLength is not shown as deprecated #8960

Closed DartBot closed 9 years ago

DartBot commented 11 years ago

This issue was originally filed by @bp74


The documentation of List.fixedLength says: Deprecated: Use new List(count) instead.

But the analyzer does not show it in the Dart Editor. I think the @­deprecated annotations is not set correctly.

kevmoo commented 11 years ago

Related? https://code.google.com/p/dart/issues/detail?id=8931

sethladd commented 11 years ago

Added Area-Library, Triaged labels.

sethladd commented 11 years ago

There is no way to formally mark something as deprecated in the core lib, unfortunately.

See also https://code.google.com/p/dart/issues/detail?id=8590

DartBot commented 11 years ago

This comment was originally written by @bp74


I see, that's really bad from a user perspective. I already wondered why i have to use a package "dart:meta" to do something basic like using the @­deprecated tag in my library.

In C# the "Obsolete" attribute is part of the core library (System.ObsoleteAttribute). So for me it would be very logical to have it available all the time.

floitschG commented 11 years ago

Fixed in r19678.


Added Fixed label.