| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 "}", | 980 "}", |
| 981 "class B {", | 981 "class B {", |
| 982 " var v;", | 982 " var v;", |
| 983 " B() : v = new A.named();", | 983 " B() : v = new A.named();", |
| 984 "}")); | 984 "}")); |
| 985 resolve(source); | 985 resolve(source); |
| 986 assertNoErrors(source); | 986 assertNoErrors(source); |
| 987 verify(source); | 987 verify(source); |
| 988 } | 988 } |
| 989 | 989 |
| 990 public void test_implicitThisReferenceInInitializer_importPrefix() throws Exce
ption { |
| 991 Source source = addSource(createSource(// |
| 992 "import 'dart:async' as abstract;", |
| 993 "class A {", |
| 994 " var v = new abstract.Completer();", |
| 995 "}")); |
| 996 resolve(source); |
| 997 assertNoErrors(source); |
| 998 verify(source); |
| 999 } |
| 1000 |
| 990 public void test_implicitThisReferenceInInitializer_prefixedIdentifier() throw
s Exception { | 1001 public void test_implicitThisReferenceInInitializer_prefixedIdentifier() throw
s Exception { |
| 991 Source source = addSource(createSource(// | 1002 Source source = addSource(createSource(// |
| 992 "class A {", | 1003 "class A {", |
| 993 " var f;", | 1004 " var f;", |
| 994 "}", | 1005 "}", |
| 995 "class B {", | 1006 "class B {", |
| 996 " var v;", | 1007 " var v;", |
| 997 " B(A a) : v = a.f;", | 1008 " B(A a) : v = a.f;", |
| 998 "}")); | 1009 "}")); |
| 999 resolve(source); | 1010 resolve(source); |
| (...skipping 2640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3640 resolve(source); | 3651 resolve(source); |
| 3641 assertNoErrors(source); | 3652 assertNoErrors(source); |
| 3642 verify(source); | 3653 verify(source); |
| 3643 reset(); | 3654 reset(); |
| 3644 } | 3655 } |
| 3645 | 3656 |
| 3646 private void check_wrongNumberOfParametersForOperator1(String name) throws Exc
eption { | 3657 private void check_wrongNumberOfParametersForOperator1(String name) throws Exc
eption { |
| 3647 check_wrongNumberOfParametersForOperator(name, "a"); | 3658 check_wrongNumberOfParametersForOperator(name, "a"); |
| 3648 } | 3659 } |
| 3649 } | 3660 } |
| OLD | NEW |