Code completion: always validate typealiases
Code completion: always validate typealiases

A shortcut to skip validation if the type is set does not work since the
underlying type might not be set.

No tests since I can not reproduce outside of Xcode.

rdar://18502983

Swift SVN r22428

jopamer/swift,kstaring/swift,frootloops/swift,khizkhiz/swift,amraboelela/swift,gottesmm/swift,benlangmuir/swift,natecook1000/swift,Ivacker/swift,stephentyrone/swift,huonw/swift,airspeedswift/swift,sschiau/swift,nathawes/swift,Jnosh/swift,lorentey/swift,kstaring/swift,practicalswift/swift,slavapestov/swift,huonw/swift,frootloops/swift,karwa/swift,jckarter/swift,djwbrown/swift,cbrentharris/swift,manavgabhawala/swift,OscarSwanros/swift,kentya6/swift,swiftix/swift,parkera/swift,frootloops/swift,IngmarStein/swift,jopamer/swift,danielmartin/swift,aschwaighofer/swift,jtbandes/swift,Jnosh/swift,benlangmuir/swift,gmilos/swift,Ivacker/swift,tkremenek/swift,hooman/swift,aschwaighofer/swift,rudkx/swift,SwiftAndroid/swift,jtbandes/swift,modocache/swift,felix91gr/swift,LeoShimonaka/swift,ahoppen/swift,gottesmm/swift,arvedviehweger/swift,danielmartin/swift,practicalswift/swift,ben-ng/swift,bitjammer/swift,emilstahl/swift,OscarSwanros/swift,felix91gr/swift,CodaFi/swift,arvedviehweger/swift,codestergit/swift,practicalswift/swift,mightydeveloper/swift,gribozavr/swift,gottesmm/swift,calebd/swift,xedin/swift,glessard/swift,uasys/swift,johnno1962d/swift,bitjammer/swift,amraboelela/swift,khizkhiz/swift,JGiola/swift,milseman/swift,aschwaighofer/swift,KrishMunot/swift,dduan/swift,lorentey/swift,OscarSwanros/swift,johnno1962d/swift,xedin/swift,Ivacker/swift,rudkx/swift,cbrentharris/swift,mightydeveloper/swift,swiftix/swift.old,bitjammer/swift,emilstahl/swift,deyton/swift,natecook1000/swift,danielmartin/swift,SwiftAndroid/swift,tkremenek/swift,xwu/swift,felix91gr/swift,kusl/swift,sschiau/swift,parkera/swift,KrishMunot/swift,ken0nek/swift,calebd/swift,Jnosh/swift,tinysun212/swift-windows,LeoShimonaka/swift,tinysun212/swift-windows,mightydeveloper/swift,ken0nek/swift,swiftix/swift,return/swift,return/swift,kperryua/swift,tjw/swift,felix91gr/swift,nathawes/swift,cbrentharris/swift,tinysun212/swift-windows,dduan/swift,gregomni/swift,tinysun212/swift-windows,airspeedswift/swift,milseman/swift,JaSpa/swift,xedin/swift,codestergit/swift,mightydeveloper/swift,sschiau/swift,tardieu/swift,parkera/swift,IngmarStein/swift,calebd/swift,cbrentharris/swift,milseman/swift,dduan/swift,Jnosh/swift,practicalswift/swift,emilstahl/swift,gribozavr/swift,danielmartin/swift,jopamer/swift,MukeshKumarS/Swift,atrick/swift,dreamsxin/swift,lorentey/swift,airspeedswift/swift,JGiola/swift,sschiau/swift,swiftix/swift.old,devincoughlin/swift,MukeshKumarS/Swift,glessard/swift,allevato/swift,tardieu/swift,djwbrown/swift,bitjammer/swift,allevato/swift,xwu/swift,tardieu/swift,austinzheng/swift,karwa/swift,parkera/swift,LeoShimonaka/swift,brentdax/swift,airspeedswift/swift,gribozavr/swift,shahmishal/swift,karwa/swift,harlanhaskins/swift,russbishop/swift,gottesmm/swift,Ivacker/swift,bitjammer/swift,practicalswift/swift,jtbandes/swift,gregomni/swift,mightydeveloper/swift,kusl/swift,OscarSwanros/swift,tinysun212/swift-windows,hughbe/swift,xwu/swift,ken0nek/swift,tardieu/swift,modocache/swift,hooman/swift,brentdax/swift,hooman/swift,therealbnut/swift,return/swift,kperryua/swift,IngmarStein/swift,khizkhiz/swift,Ivacker/swift,huonw/swift,JaSpa/swift,jmgc/swift,JGiola/swift,allevato/swift,gregomni/swift,codestergit/swift,IngmarStein/swift,KrishMunot/swift,LeoShimonaka/swift,roambotics/swift,CodaFi/swift,khizkhiz/swift,ken0nek/swift,kstaring/swift,JaSpa/swift,djwbrown/swift,xwu/swift,frootloops/swift,devincoughlin/swift,bitjammer/swift,Ivacker/swift,alblue/swift,shajrawi/swift,OscarSwanros/swift,sschiau/swift,gmilos/swift,russbishop/swift,gmilos/swift,deyton/swift,zisko/swift,swiftix/swift.old,benlangmuir/swift,jmgc/swift,sschiau/swift,hughbe/swift,sdulal/swift,adrfer/swift,stephentyrone/swift,practicalswift/swift,amraboelela/swift,jckarter/swift,felix91gr/swift,shahmishal/swift,SwiftAndroid/swift,atrick/swift,cbrentharris/swift,devincoughlin/swift,kusl/swift,uasys/swift,russbishop/swift,roambotics/swift,Ivacker/swift,JGiola/swift,alblue/swift,rudkx/swift,ahoppen/swift,rudkx/swift,apple/swift,slavapestov/swift,jmgc/swift,codestergit/swift,xedin/swift,kentya6/swift,return/swift,zisko/swift,alblue/swift,stephentyrone/swift,brentdax/swift,CodaFi/swift,KrishMunot/swift,shajrawi/swift,johnno1962d/swift,uasys/swift,glessard/swift,austinzheng/swift,zisko/swift,sdulal/swift,kentya6/swift,slavapestov/swift,xedin/swift,jckarter/swift,shahmishal/swift,gribozavr/swift,gregomni/swift,kusl/swift,kentya6/swift,zisko/swift,glessard/swift,swiftix/swift.old,benlangmuir/swift,dduan/swift,hughbe/swift,calebd/swift,apple/swift,zisko/swift,atrick/swift,MukeshKumarS/Swift,slavapestov/swift,swiftix/swift,gribozavr/swift,stephentyrone/swift,alblue/swift,tjw/swift,danielmartin/swift,return/swift,austinzheng/swift,cbrentharris/swift,CodaFi/swift,huonw/swift,milseman/swift,uasys/swift,djwbrown/swift,KrishMunot/swift,sdulal/swift,nathawes/swift,codestergit/swift,stephentyrone/swift,IngmarStein/swift,dduan/swift,therealbnut/swift,lorentey/swift,cbrentharris/swift,lorentey/swift,roambotics/swift,rudkx/swift,manavgabhawala/swift,brentdax/swift,johnno1962d/swift,jtbandes/swift,tkremenek/swift,tardieu/swift,practicalswift/swift,uasys/swift,shajrawi/swift,rudkx/swift,jmgc/swift,ken0nek/swift,KrishMunot/swift,ahoppen/swift,return/swift,SwiftAndroid/swift,gmilos/swift,manavgabhawala/swift,airspeedswift/swift,adrfer/swift,harlanhaskins/swift,hughbe/swift,stephentyrone/swift,natecook1000/swift,return/swift,LeoShimonaka/swift,devincoughlin/swift,aschwaighofer/swift,arvedviehweger/swift,natecook1000/swift,OscarSwanros/swift,emilstahl/swift,aschwaighofer/swift,jckarter/swift,brentdax/swift,tkremenek/swift,roambotics/swift,shahmishal/swift,modocache/swift,swiftix/swift,kperryua/swift,xwu/swift,therealbnut/swift,jmgc/swift,huonw/swift,slavapestov/swift,gmilos/swift,benlangmuir/swift,tkremenek/swift,adrfer/swift,jckarter/swift,IngmarStein/swift,karwa/swift,frootloops/swift,jtbandes/swift,MukeshKumarS/Swift,tjw/swift,arvedviehweger/swift,parkera/swift,allevato/swift,LeoShimonaka/swift,hughbe/swift,arvedviehweger/swift,uasys/swift,xwu/swift,sdulal/swift,karwa/swift,sdulal/swift,SwiftAndroid/swift,xedin/swift,shajrawi/swift,zisko/swift,tjw/swift,ben-ng/swift,jtbandes/swift,kstaring/swift,atrick/swift,ahoppen/swift,cbrentharris/swift,shahmishal/swift,swiftix/swift,ben-ng/swift,ken0nek/swift,Ivacker/swift,CodaFi/swift,therealbnut/swift,kentya6/swift,devincoughlin/swift,kusl/swift,shahmishal/swift,alblue/swift,amraboelela/swift,apple/swift,amraboelela/swift,brentdax/swift,frootloops/swift,lorentey/swift,codestergit/swift,gribozavr/swift,hughbe/swift,roambotics/swift,kusl/swift,austinzheng/swift,manavgabhawala/swift,modocache/swift,emilstahl/swift,swiftix/swift,gregomni/swift,hooman/swift,slavapestov/swift,manavgabhawala/swift,airspeedswift/swift,adrfer/swift,glessard/swift,sschiau/swift,stephentyrone/swift,arvedviehweger/swift,mightydeveloper/swift,russbishop/swift,adrfer/swift,milseman/swift,khizkhiz/swift,JGiola/swift,kusl/swift,deyton/swift,deyton/swift,LeoShimonaka/swift,kentya6/swift,sdulal/swift,amraboelela/swift,JaSpa/swift,adrfer/swift,gottesmm/swift,OscarSwanros/swift,sschiau/swift,KrishMunot/swift,LeoShimonaka/swift,kperryua/swift,tinysun212/swift-windows,devincoughlin/swift,aschwaighofer/swift,manavgabhawala/swift,allevato/swift,gribozavr/swift,shajrawi/swift,mightydeveloper/swift,kstaring/swift,shajrawi/swift,harlanhaskins/swift,kstaring/swift,khizkhiz/swift,deyton/swift,nathawes/swift,nathawes/swift,therealbnut/swift,nathawes/swift,manavgabhawala/swift,dreamsxin/swift,natecook1000/swift,shajrawi/swift,jtbandes/swift,djwbrown/swift,swiftix/swift,kperryua/swift,gribozavr/swift,russbishop/swift,hooman/swift,JaSpa/swift,kstaring/swift,ben-ng/swift,milseman/swift,SwiftAndroid/swift,danielmartin/swift,karwa/swift,slavapestov/swift,johnno1962d/swift,apple/swift,atrick/swift,xwu/swift,djwbrown/swift,allevato/swift,devincoughlin/swift,alblue/swift,therealbnut/swift,swiftix/swift.old,milseman/swift,aschwaighofer/swift,kperryua/swift,jckarter/swift,modocache/swift,gmilos/swift,lorentey/swift,russbishop/swift,natecook1000/swift,atrick/swift,SwiftAndroid/swift,jmgc/swift,MukeshKumarS/Swift,felix91gr/swift,harlanhaskins/swift,swiftix/swift.old,shajrawi/swift,uasys/swift,practicalswift/swift,dduan/swift,harlanhaskins/swift,khizkhiz/swift,apple/swift,huonw/swift,felix91gr/swift,parkera/swift,emilstahl/swift,JaSpa/swift,calebd/swift,bitjammer/swift,tjw/swift,kentya6/swift,emilstahl/swift,kusl/swift,ben-ng/swift,alblue/swift,ben-ng/swift,gmilos/swift,xedin/swift,parkera/swift,nathawes/swift,adrfer/swift,tjw/swift,frootloops/swift,zisko/swift,tardieu/swift,jopamer/swift,austinzheng/swift,harlanhaskins/swift,karwa/swift,deyton/swift,karwa/swift,calebd/swift,ben-ng/swift,Jnosh/swift,gottesmm/swift,jopamer/swift,shahmishal/swift,mightydeveloper/swift,kperryua/swift,apple/swift,emilstahl/swift,danielmartin/swift,therealbnut/swift,modocache/swift,ken0nek/swift,natecook1000/swift,jmgc/swift,hooman/swift,roambotics/swift,kentya6/swift,CodaFi/swift,hughbe/swift,devincoughlin/swift,CodaFi/swift,benlangmuir/swift,ahoppen/swift,jckarter/swift,MukeshKumarS/Swift,codestergit/swift,tardieu/swift,austinzheng/swift,sdulal/swift,swiftix/swift.old,austinzheng/swift,xedin/swift,dduan/swift,amraboelela/swift,jopamer/swift,johnno1962d/swift,tinysun212/swift-windows,Jnosh/swift,parkera/swift,swiftix/swift.old,arvedviehweger/swift,djwbrown/swift,jopamer/swift,allevato/swift,JaSpa/swift,johnno1962d/swift,lorentey/swift,harlanhaskins/swift,sdulal/swift,ahoppen/swift,MukeshKumarS/Swift,JGiola/swift,brentdax/swift,IngmarStein/swift,calebd/swift,huonw/swift,tkremenek/swift,gregomni/swift,tkremenek/swift,tjw/swift,deyton/swift,Jnosh/swift,russbishop/swift,glessard/swift,gottesmm/swift,modocache/swift,hooman/swift,shahmishal/swift,airspeedswift/swift