1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22EXPECT FAILURE "methodoverload.tests 1": 23interface Derived { 24 void f(); 25 void f(); 26}; 27 28 29EXPECT FAILURE "methodoverload.tests 2": 30interface Base { 31 void f(); 32}; 33interface Derived { 34 interface Base; 35 void f(); 36}; 37 38 39EXPECT FAILURE "methodoverload.tests 3": 40interface Base { 41 void f(); 42}; 43interface Derived { 44 void f(); 45 interface Base; 46}; 47 48 49EXPECT FAILURE "methodoverload.tests 4": 50interface Base { 51 void f(); 52}; 53interface Derived { 54 [optional] interface Base; 55 void f(); 56}; 57 58 59EXPECT FAILURE "methodoverload.tests 5": 60interface Base { 61 void f(); 62}; 63interface Derived { 64 void f(); 65 [optional] interface Base; 66}; 67 68 69EXPECT FAILURE "methodoverload.tests 6": 70interface Base1 { 71 void f(); 72}; 73interface Base2 { 74 void f(); 75}; 76interface Derived { 77 interface Base1; 78 interface Base2; 79}; 80 81 82EXPECT FAILURE "methodoverload.tests 7": 83interface Base1 { 84 void f(); 85}; 86interface Base2 { 87 void f(); 88}; 89interface Derived { 90 [optional] interface Base1; 91 interface Base2; 92}; 93 94 95EXPECT FAILURE "methodoverload.tests 8": 96interface Base1 { 97 void f(); 98}; 99interface Base2 { 100 void f(); 101}; 102interface Derived { 103 interface Base1; 104 [optional] interface Base2; 105}; 106 107 108EXPECT SUCCESS "methodoverload.tests 9": 109interface Base1 { 110 void f(); 111}; 112interface Base2 { 113 void f(); 114}; 115interface Derived { 116 [optional] interface Base1; 117 [optional] interface Base2; 118}; 119