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

Unified Diff: pkg/analyzer_experimental/test/generated/resolver_test.dart

Issue 16702002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months 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
Index: pkg/analyzer_experimental/test/generated/resolver_test.dart
diff --git a/pkg/analyzer_experimental/test/generated/resolver_test.dart b/pkg/analyzer_experimental/test/generated/resolver_test.dart
index 77231c2e8e5666ce040b4ef993e15b7fdc64e471..a994a36a9d596e56ae49a4ad2205317ba4b8fb3a 100644
--- a/pkg/analyzer_experimental/test/generated/resolver_test.dart
+++ b/pkg/analyzer_experimental/test/generated/resolver_test.dart
@@ -7997,7 +7997,7 @@ class StaticWarningCodeTest extends ResolverTestCase {
verify([source]);
}
void test_newWithNonType() {
- Source source = addSource(EngineTestCase.createSource(["var A = 0;", "void f() {", " A a = new A();", "}"]));
+ Source source = addSource(EngineTestCase.createSource(["var A = 0;", "void f() {", " var a = new A();", "}"]));
resolve(source);
assertErrors([StaticWarningCode.NEW_WITH_NON_TYPE]);
verify([source]);
@@ -8109,6 +8109,12 @@ class StaticWarningCodeTest extends ResolverTestCase {
assertErrors([StaticWarningCode.NON_VOID_RETURN_FOR_SETTER]);
verify([source]);
}
+ void test_notAType() {
+ Source source = addSource(EngineTestCase.createSource(["f() {}", "main() {", " f v = null;", "}"]));
+ resolve(source);
+ assertErrors([StaticWarningCode.NOT_A_TYPE]);
+ verify([source]);
+ }
void test_notEnoughRequiredArguments() {
Source source = addSource(EngineTestCase.createSource(["f(int a, String b) {}", "main() {", " f();", "}"]));
resolve(source);
@@ -8619,6 +8625,10 @@ class StaticWarningCodeTest extends ResolverTestCase {
final __test = new StaticWarningCodeTest();
runJUnitTest(__test, __test.test_nonVoidReturnForSetter_method);
});
+ _ut.test('test_notAType', () {
+ final __test = new StaticWarningCodeTest();
+ runJUnitTest(__test, __test.test_notAType);
+ });
_ut.test('test_notEnoughRequiredArguments', () {
final __test = new StaticWarningCodeTest();
runJUnitTest(__test, __test.test_notEnoughRequiredArguments);
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/resolver.dart ('k') | pkg/analyzer_experimental/test/generated/test_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698