mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When type-checking a slice type, "desugar" it to a type that is
generic over the type of the base. By "generic" I mean that it's looked up by prepending the word "Slice" to the name of the base type. Swift SVN r1464
This commit is contained in:
@@ -47,6 +47,9 @@ static bool checkFullyTyped(Parser &P, Type type) {
|
||||
case TypeKind::Array:
|
||||
return checkFullyTyped(P, cast<ArrayType>(type)->getBaseType());
|
||||
|
||||
case TypeKind::ArraySlice:
|
||||
return checkFullyTyped(P, cast<ArraySliceType>(type)->getBaseType());
|
||||
|
||||
case TypeKind::Function: {
|
||||
FunctionType *fn = cast<FunctionType>(type);
|
||||
return checkFullyTyped(P, fn->getInput())
|
||||
|
||||
Reference in New Issue
Block a user