| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package com.google.dart.compiler.resolver; | 5 package com.google.dart.compiler.resolver; |
| 6 | 6 |
| 7 import com.google.common.base.Joiner; | 7 import com.google.common.base.Joiner; |
| 8 import com.google.dart.compiler.DartCompilationError; | 8 import com.google.dart.compiler.DartCompilationError; |
| 9 import com.google.dart.compiler.ErrorCode; | 9 import com.google.dart.compiler.ErrorCode; |
| 10 import com.google.dart.compiler.ast.DartClass; | 10 import com.google.dart.compiler.ast.DartClass; |
| (...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 " new Foo<Param>();", | 1217 " new Foo<Param>();", |
| 1218 " }", | 1218 " }", |
| 1219 "}"), | 1219 "}"), |
| 1220 TypeErrorCode.NOT_A_TYPE); | 1220 TypeErrorCode.NOT_A_TYPE); |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 public void test_operatorIs_withFunctionAlias() throws Exception { | 1223 public void test_operatorIs_withFunctionAlias() throws Exception { |
| 1224 resolveAndTest(Joiner.on("\n").join( | 1224 resolveAndTest(Joiner.on("\n").join( |
| 1225 "class Object {}", | 1225 "class Object {}", |
| 1226 "class int {}", | 1226 "class int {}", |
| 1227 "typedef Dynamic F1<T>(Dynamic x, T y);", | 1227 "typedef dynamic F1<T>(dynamic x, T y);", |
| 1228 "class MyClass {", | 1228 "class MyClass {", |
| 1229 " main() {", | 1229 " main() {", |
| 1230 " F1<int> f1 = (Object o, int i) => null;", | 1230 " F1<int> f1 = (Object o, int i) => null;", |
| 1231 " if (f1 is F1<int>) {", | 1231 " if (f1 is F1<int>) {", |
| 1232 " }", | 1232 " }", |
| 1233 " }", | 1233 " }", |
| 1234 "}")); | 1234 "}")); |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 public void testTypeVariableInStatic() { | 1237 public void testTypeVariableInStatic() { |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 "class Object {}", | 1807 "class Object {}", |
| 1808 "class A {", | 1808 "class A {", |
| 1809 " A(arg) {}", | 1809 " A(arg) {}", |
| 1810 "}", | 1810 "}", |
| 1811 "class B extends A {", | 1811 "class B extends A {", |
| 1812 " B() { }", | 1812 " B() { }", |
| 1813 "}"), | 1813 "}"), |
| 1814 errEx(ResolverErrorCode.TOO_FEW_ARGUMENTS_IN_IMPLICIT_SUPER, 6, 3, 7)); | 1814 errEx(ResolverErrorCode.TOO_FEW_ARGUMENTS_IN_IMPLICIT_SUPER, 6, 3, 7)); |
| 1815 } | 1815 } |
| 1816 } | 1816 } |
| OLD | NEW |