From 03ddcf11370726677332f9c1dfc1b4dc78ef6f5f Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 28 Feb 2019 17:42:11 +0100 Subject: Fix to typeToString implementation --- cpp/src/slice2swift/SwiftUtil.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2swift/SwiftUtil.cpp') diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 1b402f4d846..2c66616da49 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -254,7 +254,7 @@ SwiftGenerator::typeToString(const TypePtr& type, const ContainedPtr& toplevel, return ""; } - string t = "???"; + string t = ""; // // The current module were the type is being used // @@ -292,6 +292,11 @@ SwiftGenerator::typeToString(const TypePtr& type, const ContainedPtr& toplevel, { t = getUnqualified(getAbsoluteImpl(cont), currentModule); } + else + { + assert(false); + t = "???"; + } if(!nonnull && (optional || isNullableType(type))) { -- cgit v1.2.3