/* * Copyright 2020 Google LLC * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // WITH_RUNTIME // TEST PROCESSOR: TypeAliasProcessor // EXPECTED: // a : A = String // b : B = String // c : CC = A = String // d : String // listOfInt : ListOfInt = List // listOfInt_B : ListOfInt_B = ListOfInt = List // listOfInt_C : ListOfInt_C = ListOfInt_B = ListOfInt = List // myList : MyList = List // myList_B : List // myList_String : MyList_String = MyList = List // myList_b_String : MyList_B_String = MyList_B = MyList = List // END typealias A = String typealias B = String typealias CC = A typealias ListOfInt = List typealias ListOfInt_B = ListOfInt typealias ListOfInt_C = ListOfInt_B typealias MyList = List typealias MyList_B = MyList typealias MyList_String = MyList typealias MyList_B_String = MyList_B val a: A = "" val b: B = "" val c: CC = "" val d: String = "" val listOfInt: ListOfInt = TODO() val listOfInt_B: ListOfInt_B = TODO() val listOfInt_C: ListOfInt_C = TODO() val myList: MyList = TODO() val myList_B: List = TODO() val myList_String: MyList_String = TODO() val myList_b_String: MyList_B_String = TODO()