diff --git a/lib/Serialization/Serialization.cpp b/lib/Serialization/Serialization.cpp index ec3c12c136f7f..eeb6ed861b5df 100644 --- a/lib/Serialization/Serialization.cpp +++ b/lib/Serialization/Serialization.cpp @@ -6319,6 +6319,7 @@ void Serializer::writeAllDeclsAndTypes() { registerDeclTypeAbbr(); registerDeclTypeAbbr(); registerDeclTypeAbbr(); + registerDeclTypeAbbr(); registerDeclTypeAbbr(); registerDeclTypeAbbr(); diff --git a/test/Serialization/value_generics.swift b/test/Serialization/value_generics.swift index 3b21d910f638a..3a2cfbc96c000 100644 --- a/test/Serialization/value_generics.swift +++ b/test/Serialization/value_generics.swift @@ -1,8 +1,9 @@ // RUN: %empty-directory(%t) -// RUN: %target-swift-frontend %s -emit-module -enable-experimental-feature RawLayout -disable-availability-checking -parse-as-library -o %t +// RUN: %target-swift-frontend %s -emit-module -enable-experimental-feature RawLayout -enable-experimental-feature InlineArrayTypeSugar -disable-availability-checking -parse-as-library -o %t // RUN: %target-sil-opt -enable-sil-verify-all %t/value_generics.swiftmodule -o - | %FileCheck %s // REQUIRES: swift_feature_RawLayout +// REQUIRES: swift_feature_InlineArrayTypeSugar // CHECK: @_rawLayout(likeArrayOf: Element, count: Count) struct Vector : ~Copyable where Element : ~Copyable { @_rawLayout(likeArrayOf: Element, count: Count) @@ -20,3 +21,6 @@ extension Vector where Count == 2 { // CHECK: func something(_: borrowing Vector) func something(_: borrowing Vector) {} + +// CHECK: func hello(_: [4 x Int]) +func hello(_: [4 x Int]) {}