mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Split off a PolymorphicFunctionType from FunctionType. I am
*positive* that the behavior here is blatantly wrong in a lot of places, but I'm going to leave it to Doug to clean up after me. :) Swift SVN r2255
This commit is contained in:
@@ -56,8 +56,9 @@ bool Parser::checkFullyTyped(Type type) {
|
||||
case TypeKind::ArraySlice:
|
||||
return checkFullyTyped(cast<ArraySliceType>(type)->getBaseType());
|
||||
|
||||
case TypeKind::Function: {
|
||||
FunctionType *fn = cast<FunctionType>(type);
|
||||
case TypeKind::Function:
|
||||
case TypeKind::PolymorphicFunction: {
|
||||
AnyFunctionType *fn = cast<AnyFunctionType>(type);
|
||||
return checkFullyTyped(fn->getInput())
|
||||
| checkFullyTyped(fn->getResult());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user