rspec/rules/S1874/dart/rule.adoc
2024-07-12 11:57:36 +02:00

20 lines
395 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
[source,dart]
----
@Deprecated("This function is deprecated, use newFunction instead", ReplaceWith("newFunction()"))
void oldFunction() {
println("This is the old function.");
}
void newFunction() {
println("This is the new function.");
}
oldFunction() // Noncompliant: "oldFunction is deprecated"
----
include::../see.adoc[]