Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java

Issue 11316088: Issue 6771. Show @deprecated warning for fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/Resolver.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
index 9c64e0bd76a816b792617b0e0a2aafd49019b18b..1d68876649102dbff48520f6a176a743269d48d0 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
@@ -3707,6 +3707,8 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"const deprecated = 0;",
"@deprecated",
"ttt() {}",
+ "@deprecated",
+ "get topLevelGet => 42;",
"class A {",
" var @deprecated fff;",
" @deprecated",
@@ -3716,6 +3718,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"}",
"method() {",
" ttt();",
+ " print(topLevelGet);",
" A a = new A();",
" a.fff = 0;",
" a.mmmm();",
@@ -3724,10 +3727,11 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
"");
assertErrors(
libraryResult.getErrors(),
- errEx(TypeErrorCode.DEPRECATED_ELEMENT, 13, 3, 3),
- errEx(TypeErrorCode.DEPRECATED_ELEMENT, 15, 5, 3),
- errEx(TypeErrorCode.DEPRECATED_ELEMENT, 16, 5, 4),
- errEx(TypeErrorCode.DEPRECATED_ELEMENT, 17, 5, 1));
+ errEx(TypeErrorCode.DEPRECATED_ELEMENT, 16, 9, 11),
+ errEx(TypeErrorCode.DEPRECATED_ELEMENT, 15, 3, 3),
+ errEx(TypeErrorCode.DEPRECATED_ELEMENT, 18, 5, 3),
+ errEx(TypeErrorCode.DEPRECATED_ELEMENT, 19, 5, 4),
+ errEx(TypeErrorCode.DEPRECATED_ELEMENT, 20, 5, 1));
}
public void test_metadataComment_deprecated_2() throws Exception {
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/Resolver.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698