Re-instate r2910, now that I've remembered why we need it: essentially, we need to make sure we don't open up declarations that don't actually have polymorphic function type, e.g., parameters. Along with trivial constraint-generation support for TypeOfExprs, this lets us type-check calls to the various polymorphic builtins, e.g., Builtin.destroy.
Re-instate r2910, now that I've remembered why we need it:
essentially, we need to make sure we don't open up declarations that
don't actually have polymorphic function type, e.g., parameters. Along
with trivial constraint-generation support for TypeOfExprs, this lets
us type-check calls to the various polymorphic builtins, e.g.,
Builtin.destroy.


Swift SVN r2913

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